seep ongoing stdins #1

Closed
opened 2024-02-21 14:20:26 +01:00 by cscherrNT · 3 comments
Collaborator

seep reads to end into the buffer, so ongoing streams cannot be seeped

seep reads to end into the buffer, so ongoing streams cannot be seeped
cscherrNT referenced this issue from a commit 2024-02-21 14:20:41 +01:00
Author
Collaborator

I guess we need to use io::copy instead of just reading to end. We could have a thread/task for reading, but threading or async for such a simple program seems totally overkill.

I guess we need to use `io::copy` instead of just reading to end. We could have a thread/task for reading, but threading or async for such a simple program seems totally overkill.
Author
Collaborator

We could also have a loop that reads into a buffer with length 1, then write the buffer to all targets, but that seems costly in terms of performance

We could also have a loop that reads into a buffer with length 1, then write the buffer to all targets, but that seems costly in terms of performance
Author
Collaborator

tee reads into a buffer of const size, then writes to the targets. This loops. The bufsize is not necessarily 1.

[tee](https://github.com/coreutils/coreutils/blob/master/src/tee.c#L226) reads into a buffer of const size, then writes to the targets. This loops. The bufsize is not necessarily 1.
cscherrNT referenced this issue from a commit 2024-02-21 14:45:53 +01:00
Sign in to join this conversation.
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: PlexSheep/seep#1
No description provided.