connect-timeout not working
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.
- text/plain attachment: url.c.patch