Skip to content

fix(transport): reject pending consumer tasks on close - #381

Merged
ibc merged 1 commit into
versatica:v3from
Harxhit:fix/transport-close
Sep 10, 2026
Merged

fix(transport): reject pending consumer tasks on close#381
ibc merged 1 commit into
versatica:v3from
Harxhit:fix/transport-close

Conversation

@Harxhit

@Harxhit Harxhit commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Closes: #380

Before

When transport.close() was called while a ConsumerCreationTask was still pending, the task's Promise was never settled. This caused transport.consume() to remain pending indefinitely.

  • Before fix: FAIL : test timed out after 500 ms.

After

Pending ConsumerCreationTasks are now explicitly rejected when the Transport closes. A regression test was also added to reproduce the race and verify that transport.consume() rejects instead of hanging.

  • After fix: PASS — completed in 44 ms.

@ibc
ibc merged commit 6d6e222 into versatica:v3 Sep 10, 2026
8 checks passed
@ibc

ibc commented Sep 10, 2026

Copy link
Copy Markdown
Member

Thanks!

Released in 3.23.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Transport.consume() can hang forever on close() race

3 participants