]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
revisit and clean up destructor vs shutdown
authorAlan T. DeKok <aland@freeradius.org>
Wed, 6 Aug 2025 15:43:43 +0000 (11:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 6 Aug 2025 17:41:08 +0000 (13:41 -0400)
commit013660fb0e2859029e906012d7dbf51e387999b8
tree521a8e098b011f1abd30c2f3dd489d98b3c06463
parentd3cbe98f6994e36861aa4aee681e7bfc7d376e3e
revisit and clean up destructor vs shutdown

shutdown can be called on fatal error, and only stops the BIO.
the underlying BIO is still there.  This allows it to be called
from a BIO which is in the middle of a chain.

destructor calls shutdown first, and then frees the resources.
this allows a destructor to be called from anywhere, and then the
entire chain is shut down
15 files changed:
src/lib/bio/base.c
src/lib/bio/base.h
src/lib/bio/bio_priv.h
src/lib/bio/dedup.c
src/lib/bio/fd.c
src/lib/bio/fd_errno.h
src/lib/bio/haproxy.c
src/lib/bio/mem.c
src/lib/bio/packet.c
src/lib/bio/pipe.c
src/lib/bio/queue.c
src/lib/bio/retry.c
src/modules/rlm_radius/bio.c
src/protocols/radius/client.c
src/protocols/radius/server.c