]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
In tcp_callback_writer(), don't disable time-out when changing to read. 122/head
authorHavard Eidnes <he@uninett.no>
Mon, 25 Nov 2019 23:02:34 +0000 (00:02 +0100)
committerHavard Eidnes <he@uninett.no>
Mon, 25 Nov 2019 23:02:34 +0000 (00:02 +0100)
util/netevent.c

index b8ec0ee428546dbf554344404684c601ed27a487..980bb8bea97224e9eb20071aba801c3cbd8d9ae5 100644 (file)
@@ -1001,7 +1001,7 @@ tcp_callback_writer(struct comm_point* c)
                tcp_req_info_handle_writedone(c->tcp_req_info);
        } else {
                comm_point_stop_listening(c);
-               comm_point_start_listening(c, -1, -1);
+               comm_point_start_listening(c, -1, c->tcp_timeout_msec);
        }
 }