Subject: Re: Integrating with other poll mechanisms

Re: Integrating with other poll mechanisms

From: Pawel Veselov via c-ares <c-ares_at_cool.haxx.se>
Date: Fri, 19 May 2017 11:14:46 -0700

On Thu, May 18, 2017 at 11:36 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 18 May 2017, Pawel Veselov via c-ares wrote:
>> Would it be interesting to introduce ares_fds2(ares_channel) that returns
>> a struct that is a list that has a next, fd, and read/write flags. That
>> would include. Well, may be there are better ways of presenting this
>> information.
> Use ares_getsock() perhaps?

It looks even more horrible, honestly :)

You may have to call ares_process_fd() multiple times (if multiple
descriptors trip), which is OK, fine, but that potential hard limit after
which sockets "are simply not reported back" - ugh.
Received on 2017-05-19