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

Implement dynamic resizing of StreamingForm.Buffer #2882

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

kyri-petrou
Copy link
Collaborator

/fixes #2851
/claim #2851

The issue is that that the buffer used in StreamingForm does not resize when the payload is greater than the initial buffer size. With this implementation we check the size of the underlying array and resize it when needed.

Besides the added unit test, I also tested it via the test suite in the repo linked in the issue

@jdegoes jdegoes merged commit 3860ebd into zio:main Jun 5, 2024
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handling streaming upload with multipart-form data fails with payloads greater than ~7KB
2 participants