diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-06 17:29:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-06 17:29:25 +0000 |
commit | a2ba5e4cd5344c86b7f41b637d0fe9974d5a3889 (patch) | |
tree | 9cf200c647309be306f14747d42fde05740cbd94 /package/uhttpd/src/uhttpd-utils.c | |
parent | 6b1ecb3b194d50209d97208ae39a70902cb848e8 (diff) | |
download | upstream-a2ba5e4cd5344c86b7f41b637d0fe9974d5a3889.tar.gz upstream-a2ba5e4cd5344c86b7f41b637d0fe9974d5a3889.tar.bz2 upstream-a2ba5e4cd5344c86b7f41b637d0fe9974d5a3889.zip |
[package] uhttpd: do not subscribe to epoll write events
Watch child read pipe end for data instead of relying on socket write
notification to process cgi data, should lower cpu consumption during
requests on weaker devices.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32640 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uhttpd/src/uhttpd-utils.c')
-rw-r--r-- | package/uhttpd/src/uhttpd-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.c b/package/uhttpd/src/uhttpd-utils.c index dec952357e..d31f756d14 100644 --- a/package/uhttpd/src/uhttpd-utils.c +++ b/package/uhttpd/src/uhttpd-utils.c @@ -996,6 +996,9 @@ void uh_client_remove(struct client *cl) if (cur->proc.pid) uloop_process_delete(&cur->proc); + if (cur->pipe.fd) + uloop_fd_delete(&cur->pipe); + uloop_fd_delete(&cur->fd); close(cur->fd.fd); |