Re: reached select() limit

2017-01-25 Thread David Guillen Fandos
that all fds are gonna get created at start right? If some server doesn't respond it might try TCP and open a new socket, am I right? Thanks for your help! David On 25/01/17 15:17, Daniel Stenberg wrote: On Wed, 25 Jan 2017, David Guillen Fandos wrote: Yeah agreed, but how do you retrieve the fds

reached select() limit

2017-01-24 Thread David Guillen Fandos
Hello, I wrote an app that was crashing in c-ares due to fds being bigger than 1024. While c-ares might be using around 30 fds it is unable to use fds above 1024. I looked into using getsock but it is capped at 16 sockets (although could be worked around by building c-ares myself and

Cancelling in-flight DNS request

2014-04-19 Thread David Guillen Fandos
Hello, I just wondered whether it was possible to cancel an in-flight request for a particular host without cancelling them all. For example, let's say I query two DNS requests using ares_gethostbyname and I keep looping and polling FDs. After some time I just decide to cancel one of the requests