]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that after failed read, the readagain cannot activate.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 26 Nov 2020 11:12:52 +0000 (12:12 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 26 Nov 2020 11:12:52 +0000 (12:12 +0100)
doc/Changelog
util/netevent.c

index a51da510685d6f8ccacea0221d430d5ee8deabe4..91d34a61ed18f81bc5fea41709467dbe5655d48f 100644 (file)
@@ -2,6 +2,7 @@
        - Fix to omit UDP receive errors from log, if verbosity low.
          These happen because of udp-connect.
        - For #352: contrib/metrics.awk for Prometheus style metrics output.
+       - Fix that after failed read, the readagain cannot activate.
 
 25 November 2020: Wouter
        - with udp-connect ignore connection refused with UDP timeouts.
index 7147673244766491c6b7e095198621231302637d..311a114ee613a37b6619a35ef26ac8c7a4e55426 100644 (file)
@@ -2053,6 +2053,7 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
                                (void)(*c->callback)(c, c->cb_arg,
                                        NETEVENT_CLOSED, NULL);
                        }
+                       return;
                }
                if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again)
                        tcp_req_info_read_again(fd, c);
@@ -2071,6 +2072,7 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
                                (void)(*c->callback)(c, c->cb_arg,
                                        NETEVENT_CLOSED, NULL);
                        }
+                       return;
                }
                if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again)
                        tcp_req_info_read_again(fd, c);