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.

SVN-Revision: 32640
This commit is contained in:
Jo-Philipp Wich
2012-07-06 17:29:25 +00:00
parent fe015f399f
commit 1f2d5da887
6 changed files with 27 additions and 4 deletions

View File

@@ -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 */