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

Chunk data based on the buffer capacity #7

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

nikolay-ngrok
Copy link
Contributor

@nikolay-ngrok nikolay-ngrok commented Jul 6, 2023

Fixes: #5
Replaces: #3

If we attempt to write an array bigger then our capacity, we should automatically split it in chunks and write these, as opposed to throwing array out of bounds exc.

Also, increase the buffer size to 4k.

@nikolay-ngrok nikolay-ngrok merged commit 95c85a0 into main Jul 10, 2023
@nikolay-ngrok nikolay-ngrok deleted the nikolay/output-chunking branch July 10, 2023 16:13
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.

ConnectionOutputStream.write throws exception if called with sufficiently large payload
2 participants