Skip to content

Close search streams and connection waits when the repo stops - #133

Open
aran wants to merge 1 commit into
alexjg:mainfrom
aran:close-search-on-stop
Open

aran wants to merge 1 commit into
alexjg:mainfrom
aran:close-search-on-stop

Conversation

@aran

@aran aran commented Oct 23, 2026

Copy link
Copy Markdown

Stopping a repo answered its stop waiters but kept the senders for search streams and for waits on a peer's connection. Nothing would ever send on them again, so a Repo::search stream never ended and Repo::find and Repo::when_connected never returned: their waiters hung rather than seeing Stopped.

The repo now drops those senders when the hub reports it has stopped.

Stopping a repo answered its stop waiters but kept the senders for
search streams and for waits on a peer's connection. Nothing would ever
send on them again, so a `Repo::search` stream never ended and
`Repo::find` and `Repo::when_connected` never returned: their waiters
hung rather than seeing `Stopped`.

The repo now drops those senders when the hub reports it has stopped.

This branch has not been deployed

No deployments
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.

1 participant