cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Locking and multi on multiple connections.

From: Michael Menegakis <arxeio_at_gmail.com>
Date: Thu, 9 Dec 2010 12:09:11 +0200

On Thu, Dec 9, 2010 at 10:40 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 9 Dec 2010, Michael Menegakis wrote:
>> It leaves the blocking I noticed on very rapidly packed simultaneous
>> easies, but I have it at least workarounded it with a simple flood
>> protection.
>
> It doesn't have anything to do with "flooding".
>
> BTW, there are also a few other code flows that causes the multi interface
> to block and we've tried to document them here:
>
>  http://curl.haxx.se/libcurl/c/libcurl-multi.html#BLOCKING

Yes. That's what I'm reading. In my case only the first applies
(non-windows line).

What did you mean it has nothing to do with flooding? What does it
have to do with?

Are there other known conditions blocking may occur? I noticed there
may be occasionally severe blocking if I remove a connection, e.g. I
turn off the wireless card and turn it on again. I suspect it's
curl_multi_perform() again though I haven't benchmarked it step by
step again (hrm. maybe gprof might make it easier).
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-09