diff options
author | Steven Barth <steven@midlink.org> | 2008-06-25 17:13:59 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-25 17:13:59 +0000 |
commit | 741bbe7817d94a02270e3bf425b6e0ff77c5015d (patch) | |
tree | eca9dfc87b42c36a485ad948b77ceb4c4288e738 /libs/httpd/luasrc | |
parent | 5d9394a3d661dad26ca9d1cec043ec7d70278b27 (diff) |
* libs/httpd: cleanup
Diffstat (limited to 'libs/httpd/luasrc')
-rw-r--r-- | libs/httpd/luasrc/httpd/server.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/httpd/luasrc/httpd/server.lua b/libs/httpd/luasrc/httpd/server.lua index 1b54b30f2..57221647f 100644 --- a/libs/httpd/luasrc/httpd/server.lua +++ b/libs/httpd/luasrc/httpd/server.lua @@ -119,8 +119,6 @@ function Server.process( self, thread ) local reading = { client } local message, err - - socket.sleep(5) repeat -- parse headers @@ -131,8 +129,6 @@ function Server.process( self, thread ) break end - coroutine.yield() - -- keep-alive if message.http_version == 1.1 then close = (message.env.HTTP_CONNECTION == "close") @@ -176,8 +172,6 @@ function Server.process( self, thread ) break; end - coroutine.yield() - local response, sourceout = host:process( message, sourcein, sinkerr, client, io.stderr @@ -186,8 +180,6 @@ function Server.process( self, thread ) self:error( client, 500, "Error processing handler" ) end - coroutine.yield() - -- Post process response local sinkmode = close and "close-when-done" or "keep-open" |