curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: can't go ahead if event isn't finished in libevent

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 May 2017 16:57:29 +0200 (CEST)

On Tue, 2 May 2017, Pahome Chen wrote:

>> *while(1); *// I add this line to block the function but I already
>> add easy handle to multi handle
>
>> Didn't we already discuss that hyperfifo runs single-threaded and if you
>> loop unconditionally there then no transfer will occur?
>
> sorry I still don't know why it has relation with single-threaded?

Because your addition of while(1) above makes the code never leave that
function so it can't continue and do the rest of what it needs to do. It get
stuck in that loop.

You can of course fix that by removing the while(1) again.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-05-02