HTTP-Timeout to 5 seconds
authorSteven Barth <steven@midlink.org>
Wed, 27 May 2009 18:26:07 +0000 (18:26 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 27 May 2009 18:26:07 +0000 (18:26 +0000)
libs/lucid-http/luasrc/lucid/http/server.lua

index 73239da1b2fd0cae3e6e86a033969e93855ce8f5..008fd1fc2d84006e4e43a1078c8071c3b7dee54f 100644 (file)
@@ -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