-
Notifications
You must be signed in to change notification settings - Fork 51
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
Allow maximum payload size to be configurable #29
Comments
i think that this must be configured some option. |
I think it's fine to expose some options for this. The drpcmanager creates this type and already has an options struct exposed, so adding a NewReaderOptions seems reasonable. |
I'll try to do this monday, but I'm also happy to review any PRs :) |
Awesome- I'll toss one up, was just waiting for confirmation that it wasn't an intentional design choice to avoid! |
PR has been linked! |
This is somewhat related. This error being hidden made it harder to debug. |
This is now implemented. Check out https://pkg.go.dev/storj.io/[email protected]/drpcwire#ReaderOptions. |
Neato. Thank you @zeebo! |
drpc/drpcwire/reader.go
Line 119 in 41e8fa5
It appears the maximum payload size is 4MB right now and isn't configurable. Is this an intentional design choice?
The text was updated successfully, but these errors were encountered: