Skip to content

Fix issue if encoding is enabled but not used#11358

Merged
normanmaurer merged 1 commit into
netty:4.1from
stuartwdouglas:11357
Jun 7, 2021
Merged

Fix issue if encoding is enabled but not used#11358
normanmaurer merged 1 commit into
netty:4.1from
stuartwdouglas:11357

Conversation

@stuartwdouglas
Copy link
Copy Markdown
Contributor

@stuartwdouglas stuartwdouglas commented Jun 3, 2021

Motivation:

Fixes an IllegalReferenceCountException

Modification:

Retained the buffers so the encoder works correctly.

Result:

Fixes #11357

@stuartwdouglas
Copy link
Copy Markdown
Contributor Author

I thought something else was wrong in #11093 but managed to convince myself that it was fine. Turns out that there are similar problems for HTTP/1.0 and requests that don't set an accept-encoding.

Copy link
Copy Markdown
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, @stuartwdouglas. Left two nits.

@stuartwdouglas
Copy link
Copy Markdown
Contributor Author

Fixed, no idea how that happened.

Copy link
Copy Markdown
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

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

@normanmaurer normanmaurer added this to the 4.1.66.Final milestone Jun 7, 2021
Copy link
Copy Markdown
Member

@normanmaurer normanmaurer left a comment

Choose a reason for hiding this comment

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

Thanks a lot @stuartwdouglas

@normanmaurer normanmaurer merged commit 9f8bfa3 into netty:4.1 Jun 7, 2021
normanmaurer pushed a commit that referenced this pull request Jun 7, 2021
Motivation:

Fixes an IllegalReferenceCountException

Modification:

Retained the buffers so the encoder works correctly.

Result:

Fixes #11357
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
Motivation:

Fixes an IllegalReferenceCountException

Modification:

Retained the buffers so the encoder works correctly.

Result:

Fixes netty#11357
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.

IllegalReferenceCountException with compression enabled but not used if HttpResponse implements HttpContent and not LastHttpContent

3 participants