]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor udp_recv_cb()
authorOndřej Surý <ondrej@sury.org>
Mon, 26 Oct 2020 16:31:55 +0000 (17:31 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 9 Dec 2020 09:46:16 +0000 (10:46 +0100)
commitc4816ce34fd91eb369855e6dd56eb40c47ae38e9
treecca7e5cb07c1177654986c56d0c59179b1e0eb3d
parent7945fb0c9038d122096c49bffc5d582742da7504
Refactor udp_recv_cb()

- more logical code flow.
- propagate errors back to the caller.
- add a 'reading' flag and call the callback from failed_read_cb()
  only when it the socket was actively reading.

(cherry picked from commit 5fcd52209a9eeb7c6575b77c3bd4070ad9ba1c2d)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/udp.c