From c2e7896dea3b1834be3f35961da53dcfd2c61a04 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 6 Jul 2012 17:29:25 +0000 Subject: [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 --- package/uhttpd/src/uhttpd-lua.c | 1 + 1 file changed, 1 insertion(+) (limited to 'package/uhttpd/src/uhttpd-lua.c') diff --git a/package/uhttpd/src/uhttpd-lua.c b/package/uhttpd/src/uhttpd-lua.c index 5158534e2..10d6de402 100644 --- a/package/uhttpd/src/uhttpd-lua.c +++ b/package/uhttpd/src/uhttpd-lua.c @@ -558,6 +558,7 @@ bool uh_lua_request(struct client *cl, lua_State *L) memset(state, 0, sizeof(*state)); state->cl = cl; + state->cl->pipe.fd = rfd[0]; state->cl->proc.pid = child; /* close unneeded pipe ends */ -- cgit v1.2.3