Skip to content

Comments

Fix: Sending response to all pending async_responses if channel has gone away#95

Open
kalmik wants to merge 2 commits intomasterfrom
fix/hangup-block-responses
Open

Fix: Sending response to all pending async_responses if channel has gone away#95
kalmik wants to merge 2 commits intomasterfrom
fix/hangup-block-responses

Conversation

@kalmik
Copy link
Contributor

@kalmik kalmik commented Jan 23, 2026

Problem:

Edge case when we are awaiting for an async_reponses on some API or Command, and the CHANNEL_hANGUP event comes before all pending responses events, such as CHANNEL_EXECUTE_COMPLETE, the outbound Session will wait forever.

Details:

Setting response to all pending async_reponse to -ERR Socket has gone away to unblock all pending requests on the default hangup handler

PS: Maybe if we register CHANNEL_HANGUP_COMPLETE instead of CHANNEL_HANGUP to be the default hangup handler, we can also bypass this (not sure)

@kalmik kalmik requested a review from italorossi January 23, 2026 13:11
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