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 --- weather.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weather.lua') diff --git a/weather.lua b/weather.lua index ed12136..476c969 100644 --- a/weather.lua +++ b/weather.lua @@ -22,7 +22,7 @@ local function worker(format, station) local noaa = "http://weather.noaa.gov/pub/data/observations/metar/decoded/" -- Get info from a weather station - local f = io.popen("curl --max-time 3 -f -s "..noaa..station..".TXT") + local f = io.popen("curl --connect-timeout 1 -fsm 3 "..noaa..station..".TXT") local ws = f:read("*all") f:close() -- cgit v1.2.3