|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2501457 ] Timeouts not working with curl_multi_socket_action()
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 12 Jan 2009 17:23:11 +0000
Bugs item #2501457, was opened at 2009-01-12 15:41
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
nc -l -p 9999
I.e. this tests what happens if the web server does not respond in any way
When running the attached case with curl_multi_perform():
gcc -DOLD_AND_WORKING=1 -ggdb -Wall `curl-config --cflags` -o curltimeout curltimeout.c `curl-config --libs` && ./curltimeout
a timeout occurs after 2 s as expected. If run with curl_multi_socket_action():
gcc -DOLD_AND_WORKING=0 -ggdb -Wall `curl-config --cflags` -o curltimeout curltimeout.c `curl-config --libs` && ./curltimeout
there is no timeout. In both cases, curl_multi_timeout() returns -1
Tested with 7.16.4 and 7.19.2 on Debian lenny.
My guess is this has something to do with the fact that if "s" is CURL_SOCKET_TIMEOUT,
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
The easy work-around is that you keep your own timer and simply remove the
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info