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

Make an effort to ensure that write() does not return Ok(0) #81

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

rmja
Copy link
Member

@rmja rmja commented Jul 1, 2024

This fixes an issue in BufferingChunkedBodyWriter where if the prewritten data is so large that it almost matches the buffer capacity in such a way that the writer is unable to have any chunks in the buffer, then it will write the prewritten bytes to the underlying connection to make room for the first chunk.

Copy link
Member

@lulf lulf left a comment

Choose a reason for hiding this comment

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

Looks good.

@rmja rmja merged commit f1b7ea2 into drogue-iot:main Jul 1, 2024
1 check passed
@rmja rmja mentioned this pull request Jul 1, 2024
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.

None yet

2 participants