HTTP-Timeout to 5 seconds
This commit is contained in:
parent
e00ca14463
commit
fa25902656
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ function Server.process(self, client, env)
|
|||
local close = false
|
||||
local stat, code, msg, message, err
|
||||
|
||||
client:setsockopt("socket", "rcvtimeo", 15)
|
||||
client:setsockopt("socket", "sndtimeo", 15)
|
||||
client:setsockopt("socket", "rcvtimeo", 5)
|
||||
client:setsockopt("socket", "sndtimeo", 5)
|
||||
|
||||
repeat
|
||||
-- parse headers
|
||||
|
|
Loading…
Reference in a new issue