stop_is_oec: expect trio.EndOfChannel as graceful stream shutdown #51

Closed
goodboy wants to merge 0 commits from main into stop_is_eoc

Replacement for #37 due to typo of eoc in orig branch name..

Copying descr content form that PR below..


This should likely be synced with tractor’s new typed-IPC-msging either via dev branch or (ideally) a release!


Change .data._sampling broadcast error handling to include trio.EndOfChannel in the Sampler.bcast_errors: set since a tractor.MsgStream termination msg (Stop) now instead translates to that raised in task.

The main purpose here is to avoid crashing the sampler broadcast task in such graceful peer-disconnect conditions.

Replacement for #37 due to typo of eoc in orig branch name.. Copying descr content form that PR below.. --- This should likely be synced with `tractor`'s new [typed-IPC-msging](https://pikers.dev/goodboy/tractor/pulls/7) either via dev branch or (ideally) a release! --- Change `.data._sampling` broadcast error handling to include `trio.EndOfChannel` in the `Sampler.bcast_errors: set` since a `tractor.MsgStream` termination msg (`Stop`) now instead translates to that raised in task. The main purpose here is to avoid crashing the sampler broadcast task in such graceful peer-disconnect conditions.
Poster
Owner

Lol wow, from/into branches backward.. #52 is what this was meant to be..

Lol wow, from/into branches backward.. #52 is what this was meant to be..
goodboy closed this pull request 2026-01-01 19:42:59 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pikers/piker#51
There is no content yet.