aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_getsock.c
AgeCommit message (Collapse)Author
2010-03-11fix compiler warningYang Tse
2009-11-02Renamed c-ares setup.h to ares_setup.hYang Tse
2007-09-29Port the TCP socket fix made in ares_fds() to ares_getsock() as well.Steinar H. Gunderson
2007-09-29Previously, processing a large batch of timeouts was O(n^2) in the number ofSteinar H. Gunderson
outstanding queries, and processing a DNS response packet was O(n) in the number of outstanding queries. To speed things up in Google, we added a few circular, doubly-linked lists of queries that are hash-bucketed based on the attributes we care about, so most important operations are now O(1). It might be that the number of buckets are higher than most people would need, but on a quick calculation it should only be 100kB or so even on a 64-bit system, so I've let it stay as-is.
2007-04-03update copyright yearYang Tse
2007-02-26Removed inclusion of <sys/types.h> in .c-filesGisle Vanem
since it's already included through "setup.h".
2006-10-12avoid an overflow if an excessive amount of servers are usedDaniel Stenberg
2006-08-03Ravi Pratap fixed ares_getsock() to actually return the proper bitmap andDaniel Stenberg
not always zero!
2005-12-22Added ares_getsock() to extract sockets to wait for action on, without beingDaniel Stenberg
limited to select().