]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix update, with write event check with streamreuse and fastopen.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Dec 2020 15:17:26 +0000 (16:17 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Dec 2020 15:17:26 +0000 (16:17 +0100)
doc/Changelog
util/netevent.c

index 890e439feb1f6abe8446ff67ee55ee7aad4026b1..4b6a4a318435b872858c2745152626bf49eb21f6 100644 (file)
@@ -7,6 +7,7 @@
          handler and not print so frequently when invoked in sequence.
        - Fix on windows to ignore connection failure on UDP, unless verbose.
        - Fix for #283: fix stream reuse and tcp fast open.
+       - Fix update, with write event check with streamreuse and fastopen.
 
 1 December 2020: Wouter
        - Fix #358: Squelch udp connect 'no route to host' errors on low
index eca2df83fd1848bdddb31a80c972dc7ca9faf26f..d3e268a01e6cee8b6e6367767c2a626ac3b2dbd0 100644 (file)
@@ -2066,7 +2066,7 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
        }
        if(event&UB_EV_READ
 #ifdef USE_MSG_FASTOPEN
-               && !c->tcp_do_fastopen
+               && !(c->tcp_do_fastopen && (event&UB_EV_WRITE))
 #endif
                ) {
                int has_tcpq = (c->tcp_req_info != NULL);