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

Fixes #237 (Empty ByteBuf leak) #242

Merged
merged 1 commit into from
Oct 16, 2014
Merged

Fixes #237 (Empty ByteBuf leak) #242

merged 1 commit into from
Oct 16, 2014

Conversation

NiteshKant
Copy link
Member

The code was not sending an onNext call for empty buffers.
This resulted in leaking memory for empty payload responses as the release of ByteBuf was a part of the onNext call.

This change sends the content onNext unconditionally and lets the user decide what to do with the buffer.

The code was not sending an `onNext` call for empty buffers.
This resulted in leaking memory for empty payload responses as the release of `ByteBuf` was a part of the `onNext` call.

 This change sends the content `onNext` unconditionally and lets the user decide what to do with the buffer.
NiteshKant added a commit that referenced this pull request Oct 16, 2014
Fixes #237 (Empty ByteBuf leak)
@NiteshKant NiteshKant merged commit 14d5640 into ReactiveX:0.x Oct 16, 2014
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.

1 participant