* libs/httpd: cleanup
This commit is contained in:
parent
5d9394a3d6
commit
741bbe7817
1 changed files with 0 additions and 8 deletions
|
@ -119,8 +119,6 @@ function Server.process( self, thread )
|
||||||
local reading = { client }
|
local reading = { client }
|
||||||
|
|
||||||
local message, err
|
local message, err
|
||||||
|
|
||||||
socket.sleep(5)
|
|
||||||
|
|
||||||
repeat
|
repeat
|
||||||
-- parse headers
|
-- parse headers
|
||||||
|
@ -131,8 +129,6 @@ function Server.process( self, thread )
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
coroutine.yield()
|
|
||||||
|
|
||||||
-- keep-alive
|
-- keep-alive
|
||||||
if message.http_version == 1.1 then
|
if message.http_version == 1.1 then
|
||||||
close = (message.env.HTTP_CONNECTION == "close")
|
close = (message.env.HTTP_CONNECTION == "close")
|
||||||
|
@ -176,8 +172,6 @@ function Server.process( self, thread )
|
||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
|
|
||||||
coroutine.yield()
|
|
||||||
|
|
||||||
local response, sourceout = host:process(
|
local response, sourceout = host:process(
|
||||||
message, sourcein, sinkerr,
|
message, sourcein, sinkerr,
|
||||||
client, io.stderr
|
client, io.stderr
|
||||||
|
@ -186,8 +180,6 @@ function Server.process( self, thread )
|
||||||
self:error( client, 500, "Error processing handler" )
|
self:error( client, 500, "Error processing handler" )
|
||||||
end
|
end
|
||||||
|
|
||||||
coroutine.yield()
|
|
||||||
|
|
||||||
-- Post process response
|
-- Post process response
|
||||||
local sinkmode = close and "close-when-done" or "keep-open"
|
local sinkmode = close and "close-when-done" or "keep-open"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue