Skip to content

Use io.Reader to avoid file size limits#26

Merged
rshade merged 5 commits intorshade:masterfrom
mporsch:io-reader
Jul 11, 2024
Merged

Use io.Reader to avoid file size limits#26
rshade merged 5 commits intorshade:masterfrom
mporsch:io-reader

Conversation

@mporsch
Copy link

@mporsch mporsch commented Aug 11, 2023

I originally created this PR in the source repo, but it seems it is not maintained anymore?
Maybe here I can get some more feedback.

=======

Currently the (download) file size is limited at 100MB.
If only this constant is increased, the server has to buffer all content in memory before passing it on.

In this PR we use an io.Reader to process everything as a stream.
Also we remove the file size limits and expose some timeouts to the command line timeout values of server and client.

gopkg.in/inconshreveable/log15.v2 v2.0.0-20200109203555-b30bc20e4fd1
)

replace github.com/imdario/mergo => dario.cat/mergo latest
Copy link
Author

Choose a reason for hiding this comment

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

This probably is not a proper solution, but I have to admit that I have no clue about go's dependency management.

@mporsch
Copy link
Author

mporsch commented Aug 17, 2023

server\client legacy client updated client
legacy server no immediate download dialog, fails after >100MB no immediate download dialog, fails after >100MB
updated server immediate download dialog, fails with timeout after 1min immediate download dialog, download succeeds

In any case the connection to that client is blocked up during the download and no parallel requests are possible.

@rshade rshade merged commit d7d712d into rshade:master Jul 11, 2024
@rshade
Copy link
Owner

rshade commented Jul 11, 2024

Hey @mporsch sorry I missed this, merging now.

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