cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libCurl 7.16.3: Are there any problems known for timeouts set with CURLOPT_TIMEOUT ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Apr 2008 23:58:00 +0200 (CEST)

On Fri, 11 Apr 2008, Stefan Krause wrote:

> Debugging revealed the following. In file ssluse.c, at a certain point
> during the SSL handshake, the function ossl_connect_common() is called. In
> line 1790 it checks for sockets ready. Sockets are nonblocking, so the
> timeout is 0. Curl_socket_ready() returns then 0 every time. That leads to
> the return of CURLE_OK. Without any action on the sockets, that repeats
> endlessly and longer than the configured timeout.

Ouch. How about the attached patch, does this fix the problem for you?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Received on 2008-04-12