cURL / Mailing Lists / curl-library / Single Mail

curl-library

https request timeout

From: Raf Nulens <raf.nulens_at_androme.com>
Date: Tue, 22 Jan 2008 15:44:14 +0100

Hi all,

Sometimes we have an issue setting up an https connection. This is what we
see from the logging:

We add a multi handle and call curl_multi_socket_all
"curl_progress_callback: download 0/0, upload 0/0"
"curl_multi_socket_all: code=-1 CURLM_CALL_MULTI_PERFORM, descr=please call
curl_multi_perform() soon, count=2"
"curl_multi_socket_all: "
"curl_progress_callback: download 0/0, upload 0/0"
"curl_socket_callback: fd=2804, index=0, event=1"
"curl_multi_timer_callback: timeout=4182"
"curl_multi_socket_all: code=0 CURLM_OK, descr=no error, count=2"

Traces and logging show that a connection is being set up (syn - syn/ack -
ack) now. But instead of an ssl handshake we get timeouts:

Timeout 1:

"curl_multi_socket: "
"curl_multi_timer_callback: timeout=10000"
"curl_multi_socket: fd=4294967295, code=0 CURLM_OK, descr=no error, count=2"
"curl_multi_socket: done, code = 0"

Timeout 2:

"curl_multi_socket: "
"curl_multi_timer_callback: timeout=20000"
"curl_multi_socket: fd=4294967295, code=0 CURLM_OK, descr=no error, count=2"
"curl_multi_socket: done, code = 0"

Final timeout:

"curl_multi_socket: "
"curl_debug_callback: [text] [About to connect() to [test https-server] port
443 (#2)]"
"curl_debug_callback: [text] [Connection time-out]"
"curl_debug_callback: [text] [Expire cleared]"
"curl_debug_callback: [text] [Closing connection #2]"
"curl_socket_callback: fd=2804, index=1, event=4"

What seems odd is that we get an "About to connect()" message from curl
function ConnectPlease after the connection has been set up. How is this
possible?
Note that during this request another http download is in progress. When we
retry the https request all goes fine.

We're using libcurl 7.16.2 on windows xp.

Tnx for your help,

Raf Nulens
Received on 2008-01-22