Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RetryFileWriter to handle BrokenPipe errors #105

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

aberglund-cf
Copy link
Contributor

These errors are recoverable if the pipe still exists and the reader may come back at some point.

These errors are recoverable if the pipe still exists and the
reader may come back at some point.
@aberglund-cf aberglund-cf marked this pull request as draft January 8, 2025 15:17
Remove nanoid
Remove fifo check, it doesn't fit our use case
@aberglund-cf aberglund-cf marked this pull request as ready for review January 27, 2025 17:04
/// where actually processed by the read side.
pub(crate) struct RetryPipeWriter {
path: PathBuf,
pipe_file: Box<File>,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File is a 4-byte integer, so you don't need to Box it.

@aberglund-cf aberglund-cf force-pushed the add_retry_writer_for_pipes branch from 1624829 to 9f37087 Compare January 30, 2025 12:43
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.

3 participants