Skip to content

Stop automatic channel restoration when the connection closes - #717

Merged
mosquito merged 1 commit into
masterfrom
fix/stop-restore-on-close
Sep 26, 2026
Merged

mosquito merged 1 commit into
masterfrom
fix/stop-restore-on-close

Conversation

@mosquito

Copy link
Copy Markdown
Owner

Closing a robust connection could trigger channel restoration after its transport had already been removed, logging ChannelInvalidStateError: No active transport in channel during shutdown.

Skip automatic restoration when the connection is closing or closed, including after waiting for the restoration lock. If shutdown starts while restoration is already in progress, let the close callback finish without reporting the recovery failure. Restoration errors still propagate while the connection remains active, and cancellation is preserved.

Fixes #668.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.723% (+0.06%) from 92.667% — fix/stop-restore-on-close into master

@mosquito
mosquito merged commit ecddb11 into master Sep 26, 2026
8 checks passed
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.

aiormq.exceptions.ChannelInvalidStateError: No active transport in channel on wind-down

2 participants