diff --git a/lib/transfer.c b/lib/transfer.c index 4ce6f32aafb6edf27aa7d4adf32e524802f33b4a..1f2c6886fec140360fd4b3260290f5ccbbdccab9 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -960,6 +960,10 @@ CURLcode Curl_perform(CURL *curl) conn->newurl = NULL; } + /* make sure the alarm is switched off! */ + if(data->timeout || data->connecttimeout) + myalarm(0); + return res; }