Den fre 2 apr. 2021 kl 23:12 skrev Daniel Stenberg <dan...@haxx.se>:

> On Fri, 2 Apr 2021, Henrik Holst wrote:
>
> >> If you use poll() then the multi socket API is probably the wrong
> choice.
> >> The multi socket API is for event-based handling.
> >>
> > Okey, but the very same thing happens with epoll, or are we only
> defining
> > event-based handling as say libevent, libev and libuv?
>
> What "very same thing" is it that happens?

For epoll, the "very same thing" is that if a non-curl socket is added to
the epoll efd then epoll_wait() would just like poll() enter a situation
where it might not return 0 to indicate timeout.


> What do you do with the timeout value curl_multi_timeout returns in an
> event-based system?
>
for epoll I would pass that on as the timeout argument for epoll_wait().

/HH

>
> --
>
>   / daniel.haxx.se
>   | Commercial curl support up to 24x7 is available!
>   | Private help, bug fixes, support, ports, new features
>   | https://www.wolfssl.com/contact/
>
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to