chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explain adns_processany better.
[adns]
/
src
/
event.c
diff --git
a/src/event.c
b/src/event.c
index 73919ffb7c588f2d7a62375f39c09d1991f558a6..fc8aa81509bffee208bab4f205efdf3376b4ce26 100644
(file)
--- a/
src/event.c
+++ b/
src/event.c
@@
-530,6
+530,10
@@
int adns_processany(adns_state ads) {
r= gettimeofday(&now,0);
if (!r) adns_processtimeouts(ads,&now);
r= gettimeofday(&now,0);
if (!r) adns_processtimeouts(ads,&now);
+ /* We just use adns__fdevents to loop over the fd's trying them.
+ * This seems more sensible than calling select, since we're most
+ * likely just to want to do a read on one or two fds anyway.
+ */
npollfds= adns__pollfds(ads,pollfds);
adns__fdevents(ads,
pollfds,npollfds,
npollfds= adns__pollfds(ads,pollfds);
adns__fdevents(ads,
pollfds,npollfds,