]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make it possible to recover from connect timeouts
authorOndřej Surý <ondrej@sury.org>
Tue, 30 Mar 2021 07:25:09 +0000 (09:25 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 7 Apr 2021 13:36:58 +0000 (15:36 +0200)
commit5a87c7372c5d01ea18da0aba9ec09a7fc6900cf6
treeec880d344db614d3667229677d7ecf0a240882cd
parent33c00c281f6279bc436b3fbff4a5069c483eb315
Make it possible to recover from connect timeouts

Similarly to the read timeout, it's now possible to recover from
ISC_R_TIMEDOUT event by restarting the timer from the connect callback.

The change here also fixes platforms that missing the socket() options
to set the TCP connection timeout, by moving the timeout code into user
space.  On platforms that support setting the connect timeout via a
socket option, the timeout has been hardcoded to 2 minutes (the maximum
value of tcp-initial-timeout).
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/isc/netmgr/udp.c