-
Notifications
You must be signed in to change notification settings - Fork 18
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
Buffer writes before chunks are written to connection #72
Conversation
I could use some help making this better. I feel like it somehow should be possible to buffer internally in in the chunked writer in a way such that the chunks gets as large as possible up to the max buffer size. Any help is greatly appreciated. |
I have now added a |
This is now ready for review. Let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly OK to me, although I wasn't particularly thorough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I especially appreciate the myriad of added tests!
This commit: * Moves the responsibility for writing the request body from `Request` to `HttpConnection`. * Uses the buffer provided when calling `into_buffered()` to buffer writes before they are passed on to the `ChunkedBufferWriter` This fixes drogue-iot#71
This reverts commit 87353be.
This reverts commit 5b28015.
This commit:
Request
toHttpConnection
.into_buffered()
to buffer writes before they are passed on to theChunkedBufferWriter
This fixes #71