]> 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>
Fri, 19 Jun 2020 07:39:50 +0000 (09:39 +0200)
commit5ea26ee1f11e2e3d294e9e92bc4810f7c525727a
treee0097646e01726708013a9433dfca12a9ad23fed
parent9e740cad21972194c063f9e471a7ba7d910ee01f
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