]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For TCP and TLS connections that don't establish, perform address
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 May 2018 06:21:39 +0000 (06:21 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 May 2018 06:21:39 +0000 (06:21 +0000)
  update in infra cache, so future selections can exclude them.

git-svn-id: file:///svn/unbound/trunk@4693 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/outside_network.c

index d37a7ac69339ed645add02358902350cc86f6da7..7046f9c9fd1b3d5be5cfb93f4eb653ef5da6de4d 100644 (file)
@@ -1,3 +1,7 @@
+25 May 2018: Wouter
+       - For TCP and TLS connections that don't establish, perform address
+         update in infra cache, so future selections can exclude them.
+
 24 May 2018: Wouter
        - Fix that libunbound can do DNS-over-TLS, when configured.
        - Fix that windows unbound service can use DNS-over-TLS.
index 54970c1744c5519f9e87836847a1c4acc13f94bc..5700ef8a95e5c3990b3c3341a7bac21b3fbf2be1 100644 (file)
@@ -1812,7 +1812,7 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error,
        }
        if(sq->tcp_upstream || sq->ssl_upstream) {
            struct timeval now = *sq->outnet->now_tv;
-           if(error==NETEVENT_TIMEOUT) {
+           if(error!=NETEVENT_NOERROR) {
                if(!infra_rtt_update(sq->outnet->infra, &sq->addr,
                    sq->addrlen, sq->zone, sq->zonelen, sq->qtype,
                    -1, sq->last_rtt, (time_t)now.tv_sec))