From: W.C.A. Wijngaards Date: Thu, 26 Nov 2020 11:12:52 +0000 (+0100) Subject: - Fix that after failed read, the readagain cannot activate. X-Git-Tag: release-1.13.0rc3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a0614db700aa6ed596a3563aff6767c69170fe;p=thirdparty%2Funbound.git - Fix that after failed read, the readagain cannot activate. --- diff --git a/doc/Changelog b/doc/Changelog index a51da5106..91d34a61e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/netevent.c b/util/netevent.c index 714767324..311a114ee 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -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);