curl-users
connect-timeout not working
From: Georg Horn <horn_at_koblenz-net.de>
Date: Thu, 3 Jan 2002 17:57:03 +0100
Received on 2002-01-03
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.
Bye,
Georg
- text/plain attachment: url.c.patch