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

Fix for zero-sized content throwing off toChannelBuffer(). #5543

Closed
wants to merge 1 commit into from
Closed

Fix for zero-sized content throwing off toChannelBuffer(). #5543

wants to merge 1 commit into from

Conversation

hhoffstaette
Copy link

Also short-circuit writeTo(..) accordingly to avoid unnecessary work. This fixes an issue where 0-sized ContentLength replies (e.g. 404) would make some REST tests fail.

@jpountz
Copy link
Contributor

jpountz commented Mar 26, 2014

Should we start using PagedBytesReference again in BytesStreamOutput?

@hhoffstaette
Copy link
Author

@jpountz Not sure I understand the question..where else would we use it?

@jpountz
Copy link
Contributor

jpountz commented Mar 26, 2014

Oops, I had not seen that you already switched back to PagedBytesReference from BytesArray in BytesStreamOutput. All right!

+1 to merge this change

short-circuit writeTo(..) accordingly to avoid unnecessary work.

Fixes #5543
@hhoffstaette hhoffstaette deleted the fix/zerocontentlength branch March 26, 2014 15:57
hhoffstaette pushed a commit that referenced this pull request Mar 27, 2014
short-circuit writeTo(..) accordingly to avoid unnecessary work.

Fixes #5543
@hhoffstaette hhoffstaette removed their assignment Mar 10, 2015
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.

None yet

3 participants