curl / Mailing Lists / curl-library / Single Mail


Re: Using multi-socket facility with epoll

From: Eran Ben Horin via curl-library <>
Date: Sun, 14 Oct 2018 18:56:59 +0300


Thanks for you reply!!

After further debugging, it seems that an ssl handshake takes place, and the operation terminates right after it.
I changed the protocol type to HTTP, and things worked!!!

1. Does this example work for https as well?
2. Do I need to do something additional, in order to “wake up” any activity after the handshake finished.


> On 14 Oct 2018, at 15:25, doa379 via curl-library <> wrote:
>> What am I trying:
>> I am writing a simple http client, and Im basing it on the multi-socket set of apis.
>> I am using epoll as the main reactor (event loop).
>> My code is *very* similar to the example in: <>.
>> The issue:
>> I am not getting any of the callbacks (timer, socket change etc).
>> Questions:
>> 1. Are there any know issues that are, maybe, missing in the above example?
>> 2. Are there open bugs for the above versions of tools and systems, and this particular flow?
>> Thanks,
>> Eran
> This example works. In this example those callbacks are imperative. The example can't work without those callbacks.
> -------------------------------------------------------------------
> Unsubscribe:
> Etiquette:

Received on 2018-10-14