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

fix(stream): in TlsActor flush data to user only after handshake has finished #31433

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

jrudolph
Copy link
Member

@jrudolph jrudolph commented Jun 9, 2022

Refs #31419

Tentative fix. I haven't been able to reproduce it in the tests yet...

…finished

Refs akka#31419

In TLS 1.3, the server also sends out a NewSessionTicket message at the
end of the handshake. This is flagged by `NEED_WRAP`. In some cases, we
have already decoded user data. However, we only update the current
session in `handshakeFinished` which is only called after we have sent
out that extra handshake package.

This fix delays sending out any data to the user until the handshake is
finished as reported by the SslEngine.
@jrudolph jrudolph force-pushed the fix-tls-session-on-tls-1-3 branch from 9bb284f to 17c9242 Compare June 9, 2022 13:06
@jrudolph jrudolph changed the title fix(stream): flush data to user only after handshake has finished fix(stream): in TlsActor flush data to user only after handshake has finished Jun 13, 2022
@adibaranga
Copy link

@jrudolph we built a local artifact from your branch and we are not able to reproduce the issue. Any chance this fix will be merged and released any time soon? Thanks!

@johanandren
Copy link
Member

Thanks for verifying that it fixes the issue @adibaranga , I think that was what was missing to move on with this PR

@johanandren johanandren added the 2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding label Dec 7, 2022
@johanandren johanandren marked this pull request as ready for review December 7, 2022 12:24
Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@patriknw patriknw merged commit 357e19b into akka:main Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding t:stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants