struct query_queue udpw, tcpw, childw, output;
adns_query forallnext;
int nextid, udpsocket, tcpsocket;
+ int bug_if_query_done_now;
vbuf tcpsend, tcprecv;
int nservers, nsortlist, nsearchlist, searchndots, tcpserver, tcprecv_skip;
enum adns__tcpstate {
server_ok, server_broken
} tcpstate;
struct timeval tcptimeout;
- /* This will have tv_sec==0 if it is not valid. It will always be
- * valid if tcpstate _connecting. When _ok, it will be nonzero if
- * we are idle (ie, tcpw queue is empty), in which case it is the
- * absolute time when we will close the connection.
+ /* This will have tv_sec==0 if it is not valid.
+ * It will always be valid if tcpstate _connecting.
+ * When _ok, it will be nonzero if we are idle
+ * (ie, tcpw queue is empty) and counting down.
*/
struct sigaction stdsigpipe;
sigset_t stdsigmask;