Skip to content

Commit

Permalink
eclipse-archived#9 : Start fresh handshake when we receive an CLIENT_…
Browse files Browse the repository at this point in the history
…HELLO (epoch=0)
  • Loading branch information
sbernard31 committed Feb 9, 2016
1 parent e465eb7 commit 61374fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ private void processHandshakeRecordWithConnection(final Record record, final Con
// client wants to re-negotiate established connection's crypto params
// evaluate message in context of established session
record.setSession(connection.getEstablishedSession());
} else if (connection.hasEstablishedSession() && record.getEpoch() == 0) {
} else if (record.getEpoch() == 0) {
// client has lost track of existing connection and wants to negotiate a new connection
// in epoch 0 no crypto params have been established yet, thus we do not need to set a session
} else {
Expand Down

0 comments on commit 61374fe

Please sign in to comment.