On Thu, May 18, 2017 at 11:36 PM, Daniel Stenberg <dan...@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.