<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><br></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>nfds = 32767</div></div></div></blockquote><div><br></div><div>wut ? you cannot do that.. select cannot <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size:13.3333px">test on the first 0 to </span></font> (32767 -1) file descriptors on each set.. only up to FD_SETSIZE .. no wonder why FD_SET is choking on ares_fds() you are indeed going over the interface limits..</div><div><br></div><div>yeah sizeof(read_fds) is 128 .. which is the size of the fd_set structure, not the number of fds in the set...</div><div><br></div><div>Use poll or epoll instead.</div><div><br></div></div></div>