Skip to content

fix(dialog): drain late INVITE answers while fork BYEs complete - #263

Merged
yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/nonblocking-fork-cleanup
Nov 23, 2026
Merged

yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/nonblocking-fork-cleanup

Conversation

@dengxiayehu

Copy link
Copy Markdown
Contributor

Problem

An unanswered cleanup BYE currently stalls reception in the client INVITE transaction's Accepted window. Subsequent successful responses cannot be ACKed promptly, even though the transaction maintains an ACK cache for each branch.

Change

Keep receiving while driving independent cleanup BYEs within the existing Accepted task. One cleanup is scheduled per distinct fork. Preserve the in-flight receive future across cleanup completions, and let each BYE transaction use its existing deadline.

Verification

  • cargo test --offline --lib dialog::tests — 281 passed.
  • A UDP regression withholds the first fork BYE response and requires a later fork's BYE before the first one completes. It failed on upstream main and passed with this change.

@yeoleobun
yeoleobun merged commit d9794fd into restsend:main Nov 23, 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.

2 participants