Skip to content

Signal send and receive threads for faster shutdown - #1664

Open
fpagliughi wants to merge 1 commit into
eclipse-paho:developfrom
fpagliughi:fast-shutdown
Open

Signal send and receive threads for faster shutdown#1664
fpagliughi wants to merge 1 commit into
eclipse-paho:developfrom
fpagliughi:fast-shutdown

Conversation

@fpagliughi

Copy link
Copy Markdown
Contributor

This seems to fix #889.

On shutdown, both the send and receive thread are blocked in long (1sec) sleeps. By calling the new Socket_interrupt() to wake the receive thread and signaling the send_evt, for the send thread, both exit quickly and the destroy/terminate/stop proceeds without delay.

Previously I believed this was caused by the disconnect call, but it's actually the shutdown that gets blocked.

@icraggs icraggs added this to the 1.3.17 milestone Apr 2, 2026
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.

3 participants