Skip to content

Conversation

@ivankelly
Copy link
Contributor

@ivankelly ivankelly commented Aug 28, 2018

The netty SSL handler uses a coalescing buffer queue, which modifies
the buffers used to queue the writes so that SSL_write can be given
larger chunks, thereby increasing the 'goodput'.

If we pass in a retained duplicate as we have been doing until now,
then later clients will be passed junk, as SSL will have modified cached
entry buffers.

This patch introduces a copying ByteBufPair encoder, which is only
used with SSL connections.

Fixes #2401

The netty SSL handler uses a coalescing buffer queue, which modifies
the buffers used to queue the writes so that SSL_write can be given
larger chunks, thereby increasing the 'goodput'.

If we pass in a retained duplicate as we have been doing until now,
then later clients will be passed junk, as SSL will have modified cached
entry buffers.

This patch introduces a copying ByteBufPair encoder, which is only
used with SSL connections.
@ivankelly ivankelly self-assigned this Aug 28, 2018
@ivankelly ivankelly requested review from massakam and merlimat August 28, 2018 12:35
@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Aug 28, 2018
@merlimat merlimat added this to the 2.1.1-incubating milestone Aug 28, 2018
@merlimat
Copy link
Contributor

run integration tests
run java8 tests

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@hrsakai
Copy link
Contributor

hrsakai commented Aug 29, 2018

run integration tests

Copy link
Contributor

@massakam massakam left a comment

Choose a reason for hiding this comment

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

LGTM

@nkurihar
Copy link
Contributor

run integration tests

@ivankelly
Copy link
Contributor Author

FYI, apache jenkins is down, so tests won't pass or even run, until it comes back up (see https://status.apache.org).

@merlimat
Copy link
Contributor

run cpp tests

@ivankelly
Copy link
Contributor Author

run integration tests
run cpp tests

@merlimat
Copy link
Contributor

run cpp tests
run integration tests

@merlimat merlimat merged commit 34e9fd6 into apache:master Aug 31, 2018
merlimat pushed a commit that referenced this pull request Sep 5, 2018
The netty SSL handler uses a coalescing buffer queue, which modifies
the buffers used to queue the writes so that SSL_write can be given
larger chunks, thereby increasing the 'goodput'.

If we pass in a retained duplicate as we have been doing until now,
then later clients will be passed junk, as SSL will have modified cached
entry buffers.

This patch introduces a copying ByteBufPair encoder, which is only
used with SSL connections.
@lhotari
Copy link
Member

lhotari commented May 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consumer often discards received messages

7 participants