cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

connect-timeout not working

From: Georg Horn <horn_at_koblenz-net.de>
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

Received on 2002-01-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET