cURL / Mailing Lists / curl-users / Single Mail


connect-timeout not working

From: Georg Horn <>
Date: Thu, 3 Jan 2002 17:57:03 +0100

Hi, and a happy new year!

Just found out, that the timouts when connecting to a server did not work
correctly. As in earlier versions (where system calls where restarted after
signals) curl seems to hang "for ever". So i examined the sources and found
out, that in url.c a timer is set with alarm() before resolving the server
name, but is switched off again after nameresolving, so that curl may hang for
a long time in the following connect. I made a patch that moves the piece of
code that restores alarms and signal-handlers behind the connect-phase. See
attachment, i hope it can bee included into the next release.


Received on 2002-01-03