cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Infinite loop in Curl_splay

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 17 Jun 2011 22:36:53 +0200 (CEST)

On Fri, 17 Jun 2011, Christian Hägele wrote:

> I am still fighting this problem. I still can't reproduce this issue, but
> while debugging my code I found that I call curl_multi_add_handle within the
> curl_multi_socket_action function (on the same multi-handle). That's because
> I call some subsequent functions within the CURLOPT_WRITEFUNCTION callback.
> Is this safe to do or can that produce this infinite loop?

I'm not sure - but I would certainly suspect it may cause problems, and yes it
sounds like a plausible explanation.

We should figure it out for sure and add something about it to the
documentation!

> Before I change my whole code I want to know if this might solve the
> problem.

I'm pretty sure that's not a good idea but I haven't done a full
investigation...

-- 
  / daniel.haxx.se

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