Skip to content

Fix file descriptor leak on disconnect#285

Merged
from2001 merged 1 commit intodevelopfrom
claude/fix-fd-leak-ftTxJ
Jan 12, 2026
Merged

Fix file descriptor leak on disconnect#285
from2001 merged 1 commit intodevelopfrom
claude/fix-fd-leak-ftTxJ

Conversation

@from2001
Copy link
Collaborator

Set zmq.LINGER=0 on ROUTER, PUB, and PUB monitor sockets to ensure immediate socket closure without waiting for pending messages. This prevents file descriptor accumulation during rapid connect/disconnect cycles from the simulator, where the asymmetric LINGER settings between client (LINGER=0) and server (default LINGER=-1) caused lingering connection states.

Set zmq.LINGER=0 on ROUTER, PUB, and PUB monitor sockets to ensure
immediate socket closure without waiting for pending messages. This
prevents file descriptor accumulation during rapid connect/disconnect
cycles from the simulator, where the asymmetric LINGER settings between
client (LINGER=0) and server (default LINGER=-1) caused lingering
connection states.
@from2001 from2001 merged commit 58fe98b into develop Jan 12, 2026
@from2001 from2001 deleted the claude/fix-fd-leak-ftTxJ branch January 12, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants