]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use a suitable response in tcp_connected() when initiating a read
authorAram Sargsyan <aram@isc.org>
Thu, 19 Dec 2024 14:22:54 +0000 (14:22 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Wed, 22 Jan 2025 13:40:45 +0000 (13:40 +0000)
commite61ba5865f801adc769df6967dc8ca9d6fa024b5
tree84fabaf8aa11fc6cc8d9db9b177f310d4135aa9b
parent48471fd50c74ec0793e76d393221dd3fd16f572f
Use a suitable response in tcp_connected() when initiating a read

When 'ISC_R_TIMEDOUT' is received in 'tcp_recv()', it times out the
oldest response in the active responses queue, and only after that it
checks whether other active responses have also timed out. So when
setting a timeout value for a read operation after a successful
connection, it makes sense to take the timeout value from the oldest
response in the active queue too, because, theoretically, the responses
can have different timeout values, e.g. when the TCP dispatch is shared.
Currently 'resp' is always NULL. Previously when connect and read
timeouts were not separated in dispatch this affected only logging, but
now since we are setting a new timeout after a successful connection,
we need to choose a suitable response from the active queue.
lib/dns/dispatch.c