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

Copy ByteBufPair buffers when using with SSL (#2401) #2464

Merged
merged 1 commit into from
Aug 31, 2018

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
@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.
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