cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform blocking for hundreds of milliseconds

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Apr 2013 13:53:06 +0200 (CEST)

On Tue, 30 Apr 2013, Scott Murray wrote:

> Everything works fine except that curl_multi_perform sometimes blocks for
> hundreds of milliseconds (sometimes over a thousand). This is rare, and
> usually it returns quickly. The multi_handle has 50 easy_handles in the
> multi stack, but this behaviour happens even with one easy_handle. There
> doesn't seem to be any obvious correlation between the number of requests
> and the time taken by curl_multi_perform.
>
> Is this to be expected;

For plain HTTP and a threaded resolver it is not expected. It would be helpful
if you could track it down further to detect more accurately where in the code
the hang occurs.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-30