]> git.ipfire.org Git - thirdparty/bind9.git/commit
modify reference counting within netmgr
authorEvan Hunt <each@isc.org>
Fri, 5 Jun 2020 06:13:54 +0000 (23:13 -0700)
committerWitold Kręcicki <wpk@isc.org>
Thu, 18 Jun 2020 08:03:44 +0000 (10:03 +0200)
commit1765ef6825c66fbd178ea468c54413f628f55e45
tree0366f4cf97eb7be3b6d8db4c3fff9192cbb72aea
parent006a0e405cc18a30a81219aacb37f5b84f3d5edf
modify reference counting within netmgr

- isc__nmhandle_get() now attaches to the sock in the nmhandle object.
  the caller is responsible for dereferencing the original socket
  pointer when necessary.
- tcpdns listener sockets attach sock->outer to the outer tcp listener
  socket. tcpdns connected sockets attach sock->outerhandle to the handle
  for the tcp connected socket.
- only listener sockets need to be attached/detached directly. connected
  sockets should only be accessed and reference-counted via their
  associated handles.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/udp.c