Repository navigation
chore: add backed reader, writer and pipe implementation - #19147
Merged
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
August 5, 2025 08:46
9dd9c4a to
3223bf9
Compare
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
2 times, most recently
from
August 7, 2025 11:18
d2ee08d to
27da7ef
Compare
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
3 times, most recently
from
August 12, 2025 21:21
16abe05 to
dde9516
Compare
spikecurtis
reviewed
Aug 13, 2025
spikecurtis
left a comment
Collaborator
There was a problem hiding this comment.
Not done with my review, but taking a break and wanted to send you comments so far.
spikecurtis
reviewed
Aug 13, 2025
spikecurtis
left a comment
Collaborator
There was a problem hiding this comment.
Another batch of comments.
I haven't really looked at BackedPipe yet, but I think maybe it would be better to wait for the comments I've made so far to be resolved.
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
August 15, 2025 00:51
7468299 to
b2188f9
Compare
ibetitsmike
marked this pull request as ready for review
August 15, 2025 08:50
spikecurtis
reviewed
Aug 15, 2025
spikecurtis
reviewed
Aug 15, 2025
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
August 19, 2025 06:52
45558ec to
064514e
Compare
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
August 20, 2025 12:38
95dc01a to
85c505d
Compare
spikecurtis
reviewed
Aug 25, 2025
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
August 25, 2025 20:32
28927dc to
9cafe05
Compare
spikecurtis
reviewed
Aug 28, 2025
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
2 times, most recently
from
September 8, 2025 08:54
c65afb6 to
8b5040d
Compare
… to block on errors
…being closed/reconnected race conditions
separate channels for writer/reader errors moved to an interface for reconnection coordination logic for closing a pipe
…etter error tracking
ibetitsmike
force-pushed
the
mike/immortal-streams-backed-base
branch
from
September 8, 2025 10:01
9f720cc to
293804b
Compare
spikecurtis
approved these changes
Sep 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes: #19977
This PR introduces a new
backedpipepackage that provides reliable bidirectional byte streams over unreliable network connections. The implementation includes:BackedPipe: Orchestrates a reader and writer to provide transparent reconnection and data replayBackedReader: Handles reading with automatic reconnection, blocking reads when disconnectedBackedWriter: Maintains a ring buffer of recent writes for replay during reconnectionRingBuffer: Efficient circular buffer implementation for storing dataThe package enables resilient connections by tracking sequence numbers and replaying missed data after reconnection. It handles connection failures gracefully, automatically reconnecting and resuming data transfer from the appropriate point.