cURL / Mailing Lists / curl-library / Single Mail

curl-library

blocking with c-ares (was Re: help: libCURL with epoll)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Nov 2011 16:05:22 +0100 (CET)

On Wed, 23 Nov 2011, Pedro Larroy wrote:

Please don't hijack threads and please don't top-post.

> I'm currently observing that I get some blocking with c-ares compiled with
> --enable-nonblocking

I trust you're using the multi interface.

That configure option is on by default. There are a few places that is still
blocking, yes. We have most of them documented in the libcurl-multi.3 man page
and I've tried to add comments to the source code where blocking functions are
used.

> With strace I see my program polling on several different filehandles, and
> blocking on requests.

I'm not sure what you're referring to exactly here though, but there are of
course also possibilities for plain bugs in libcurl or that your application
isn't using libcurl ideally.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-23