curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_THREADFUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 26 Jan 2018 23:40:48 +0100 (CET)

On Fri, 26 Jan 2018, Pete Lomax via curl-library wrote:

> I have written a wrapper for libcurl for my language, Phix
> (http://phix.x10.mx), and found that the CURLOPT_DEBUGFUNCTION option does
> not play nicely with my threads.

...

> should libcurl invoke CreateThread/sys_fork without my knowledge and then
> invoke a callback from the new thread, it crashes

If the callback is called from the name resolver thread I think that's a bug.
Are you sure that's the case? Or better: if it happens, can you set a
break-point and see from where it's called?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-26