From 1603b5fe82782f4b1f2c570166984b528479d4fe Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 10 Sep 2009 17:04:41 +0200 Subject: Curl connect timeout 1s, max time 3s --- gmail.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gmail.lua') diff --git a/gmail.lua b/gmail.lua index 98fb40d..c893c2d 100644 --- a/gmail.lua +++ b/gmail.lua @@ -26,7 +26,7 @@ local function worker(format, login) local auth = login[1] .. ":" .. login[2] -- Get info from the Gmail atom feed - local f = io.popen("curl --max-time 3 -fsu "..auth.." https://mail.google.com/mail/feed/atom") + local f = io.popen("curl --connect-timeout 1 -m 3 -fsu "..auth.." https://mail.google.com/mail/feed/atom") -- Could be huge don't read it all at once, info we are after is at the top for line in f:lines() do -- cgit v1.2.3