Skip to content

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

Merged
merlimat merged 1 commit into
apache:masterfrom
ivankelly:discard-tls-master
Aug 31, 2018
Merged

Copy ByteBufPair buffers when using with SSL (#2401)#2464
merlimat merged 1 commit into
apache:masterfrom
ivankelly:discard-tls-master

Conversation

@ivankelly

@ivankelly ivankelly commented Aug 28, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

run integration tests
run java8 tests

@merlimat merlimat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@hrsakai

hrsakai commented Aug 29, 2018

Copy link
Copy Markdown
Contributor

run integration tests

@massakam massakam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@nkurihar

Copy link
Copy Markdown
Contributor

run integration tests

@ivankelly

Copy link
Copy Markdown
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
Copy Markdown
Contributor

run cpp tests

@ivankelly

Copy link
Copy Markdown
Contributor Author

run integration tests
run cpp tests

@merlimat

Copy link
Copy Markdown
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

lhotari commented May 22, 2024

Copy link
Copy Markdown
Member

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