ubusd: add per-client tx queue limit
[project/ubus.git] / ubusd_main.c
index 3728a4279238f1c8dba36491b37c8b9bd0f44488..d298b51db17b5ccd35255a5f89877a6db781d67f 100644 (file)
@@ -74,6 +74,7 @@ static void client_cb(struct uloop_fd *sock, unsigned int events)
                }
 
                cl->txq_ofs += written;
+               cl->txq_len -= written;
                if (cl->txq_ofs < ub->len + sizeof(ub->hdr))
                        break;