]> git.ipfire.org Git - thirdparty/openldap.git/commit
Let the last thread dispose of pending references
authorOndřej Kuzník <okuznik@symas.com>
Tue, 16 Apr 2019 16:55:16 +0000 (17:55 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:58:15 +0000 (17:58 +0000)
commit25fff30e392f3616ed2de442f147568f81ead772
tree0f54ca90d67001e6947c2074419cbbb717d593b7
parent41a74b468944bfbee48ab5a165cecfdd2eaddafb
Let the last thread dispose of pending references

If we're idle, there might be objects pending cleanup for the last two
epochs. Unless another thread comes in and checks into a new epoch or we
shut down, they will linger forever.

If one of the objects was a connection, it wouldn't get closed and be
stuck in CLOSE_WAIT state, potentially refusing another ligitimate
connection if its socket address were to match the one we're yet to
close.
servers/lloadd/epoch.c