aboutsummaryrefslogtreecommitdiff
path: root/gmail.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-10 17:04:41 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-10 17:04:41 +0200
commit1603b5fe82782f4b1f2c570166984b528479d4fe (patch)
tree4a599dbc80bb0039a98ca35fa7d0f2c362169c1d /gmail.lua
parenta950bd95d60aae0d1d3a545e9e910da946b3775c (diff)
downloadvicious-legacy-1603b5fe82782f4b1f2c570166984b528479d4fe.tar.xz
Curl connect timeout 1s, max time 3s
Diffstat (limited to 'gmail.lua')
-rw-r--r--gmail.lua2
1 files changed, 1 insertions, 1 deletions
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