From fa25902656c6deaa1b1d8b8276d2c6cdf5686e5e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 May 2009 18:26:07 +0000 Subject: [PATCH] HTTP-Timeout to 5 seconds --- libs/lucid-http/luasrc/lucid/http/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index 73239da1b2..008fd1fc2d 100644 --- a/libs/lucid-http/luasrc/lucid/http/server.lua +++ b/libs/lucid-http/luasrc/lucid/http/server.lua @@ -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 -- 2.30.2