Skip to content

Commit

Permalink
in TlsActor flush data to user only after handshake has finished (#1128)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Rudolph <[email protected]>
  • Loading branch information
pjfanning and jrudolph authored Feb 18, 2024
1 parent c3d0bee commit 1e41829
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ import pekko.util.ByteString
case OK =>
result.getHandshakeStatus match {
case NEED_WRAP =>
flushToUser()
// https://github.com/apache/incubator-pekko/issues/442
// A second workaround for an infinite loop we have not been able to reproduce/isolate,
// if you see this, and can reproduce consistently, please report back to the Apache Pekko team
Expand Down Expand Up @@ -480,6 +479,7 @@ import pekko.util.ByteString
case Success(()) =>
currentSession = session
corkUser = false
flushToUser()
case Failure(ex) =>
fail(ex, closeTransport = true)
}
Expand Down

0 comments on commit 1e41829

Please sign in to comment.