]> git.ipfire.org Git - thirdparty/strongswan.git/commit
vici: Make threads handling requests get canceled explicitly
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 May 2025 14:47:13 +0000 (16:47 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 19 May 2025 15:20:59 +0000 (17:20 +0200)
commitf8e5e38b126f916e3d76e0950712479bfd405891
tree9dfee1b366d949e421d126825670d970e687ed68
parent8d3855ba31e454990a20cdf19b30fab8d3a7f095
vici: Make threads handling requests get canceled explicitly

Threads initiating SAs can get stuck on the semaphore in
wait_for_listener() during shutdown if the corresponding job is never
executed.  A particular case when this can happen is if more initiations
are triggered than worker threads are available.  This causes a (known)
deadlock as no workers are free anymore to process jobs (for inbound
messages or timeouts etc.), including the one to initiate an SA.
This change at least allows a proper shutdown.
src/libcharon/plugins/vici/vici_socket.c