]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_nm_read_stop() and remove .reading member from ccmsg
authorOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 11:31:09 +0000 (12:31 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 16:23:39 +0000 (17:23 +0100)
commit88a14985dbd7093df73c46e00a74539382e79e16
tree5c8b8509e7154a0e689b503047af0861fbf7ee1e
parent5964eb47969f4dc375adcdcd42305044e38e766d
Add isc_nm_read_stop() and remove .reading member from ccmsg

We need to stop reading when calling isc_ccmsg_disconnect() as the
reading handle doesn't have to be last because sending might be in
progress.  After that, we can safely remove .reading member because the
reading would not be called after the disconnect has been called.

The ccmsg_senddone() should also not call the recv callback if the
sending failed, that's the job of the caller's send callback - in fact
it already does that, so the code in ccmsg_senddone() was superfluous.
lib/isccc/ccmsg.c
lib/isccc/include/isccc/ccmsg.h