projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5d9394a
)
* libs/httpd: cleanup
author
Steven Barth
<steven@midlink.org>
Wed, 25 Jun 2008 17:13:59 +0000
(17:13 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 25 Jun 2008 17:13:59 +0000
(17:13 +0000)
libs/httpd/luasrc/httpd/server.lua
patch
|
blob
|
history
diff --git
a/libs/httpd/luasrc/httpd/server.lua
b/libs/httpd/luasrc/httpd/server.lua
index 1b54b30f214f759898b5294711fedd253350648b..57221647fceba2893a98e255a601a00f4c0f81d3 100644
(file)
--- 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
local reading = { client }
local message, err
-
- socket.sleep(5)
repeat
-- parse headers
repeat
-- parse headers
@@
-131,8
+129,6
@@
function Server.process( self, thread )
break
end
break
end
- coroutine.yield()
-
-- keep-alive
if message.http_version == 1.1 then
close = (message.env.HTTP_CONNECTION == "close")
-- 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
break;
end
- coroutine.yield()
-
local response, sourceout = host:process(
message, sourcein, sinkerr,
client, io.stderr
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
self:error( client, 500, "Error processing handler" )
end
- coroutine.yield()
-
-- Post process response
local sinkmode = close and "close-when-done" or "keep-open"
-- Post process response
local sinkmode = close and "close-when-done" or "keep-open"