projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubusd: add per-client tx queue limit
[project/ubus.git]
/
ubusd_main.c
diff --git
a/ubusd_main.c
b/ubusd_main.c
index 3728a4279238f1c8dba36491b37c8b9bd0f44488..d298b51db17b5ccd35255a5f89877a6db781d67f 100644
(file)
--- a/
ubusd_main.c
+++ b/
ubusd_main.c
@@
-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;