Skip to content

Handle non seekable stream by copying it into a memory stream and fix #1146 - #1158

Merged
BobLd merged 1 commit into
UglyToad:masterfrom
BobLd:issues/1146-2
Sep 14, 2025
Merged

BobLd merged 1 commit into
UglyToad:masterfrom
BobLd:issues/1146-2

Conversation

@BobLd

@BobLd BobLd commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@BobLd

BobLd commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator Author

@EliotJones if you have time to review to check if you agree with the approach. It was decided at the time to not handle making the stream seekable.

See #564

@EliotJones EliotJones left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Still not a huge fan of the idea, Streams are a pain in the butt to work with and so if you have a stream I'd prefer to leave the responsibility to the caller to work with it correctly, but this change will at least ensure they fall into the pit of success.

@BobLd

BobLd commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator Author

@EliotJones agreed, let's see if it create issues and I will advise

@BobLd
BobLd merged commit eb906a7 into UglyToad:master Sep 14, 2025
@BobLd
BobLd deleted the issues/1146-2 branch September 14, 2025 13: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.

2 participants