]> git.ipfire.org Git - thirdparty/bind9.git/commit
Always enqueue isc__nm_tcp_resumeread()
authorOndřej Surý <ondrej@isc.org>
Thu, 6 Jan 2022 12:03:39 +0000 (13:03 +0100)
committerEvan Hunt <each@isc.org>
Thu, 6 Jan 2022 18:34:04 +0000 (10:34 -0800)
commit11c869a3d53eafa4083b404e6b6686a120919c26
tree74d148e33772f4fb0db93328198719e406cb0c4c
parent579247395d944fa644643e1a7815a1aa4e290387
Always enqueue isc__nm_tcp_resumeread()

The isc__nm_tcp_resumeread() was using maybe_enqueue function to enqueue
netmgr event which could case the read callback to be executed
immediately if there was enough data waiting in the TCP queue.

If such thing would happen, the read callback would be called before the
previous read callback was finished and the worker receive buffer would
be still marked "in use" causing a assertion failure.

This would affect only raw TCP channels, e.g. rndc and http statistics.
lib/isc/netmgr/tcp.c