]> granicus.if.org Git - libevent/commitdiff
Better comments for some confusing-to-me code.
authorNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 17:22:40 +0000 (17:22 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 17:22:40 +0000 (17:22 +0000)
svn:r1117

evdns.c

diff --git a/evdns.c b/evdns.c
index ff3b6e2475e8412e9cc35c04bb566260a4c6cff8..1c30972ec91f0b3cc559b191c4bf4f72eddd26dc 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -2026,9 +2026,10 @@ evdns_request_transmit(struct evdns_request *req) {
                nameserver_write_waiting(req->ns, 1);
                return 1;
        case 2:
-               /* failed in some other way */
+               /* failed to transmit the request entirely. */
                retcode = 1;
-               /* fall through */
+               /* fall through: we'll set a timeout, which will time out,
+                * and make us retransmit the request anyway. */
        default:
                /* all ok */
                log(EVDNS_LOG_DEBUG,