Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
add a comment why we ignore the payload on the first message
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed May 5, 2021
1 parent 6c9c42f commit 88d9a76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (s *secureSession) runHandshake(ctx context.Context) error {
}
} else {
// stage 0 //
// We don't expect any payload on the first message.
if _, err := s.readHandshakeMessage(hs); err != nil {
return fmt.Errorf("error reading handshake message: %w", err)
}
Expand Down

0 comments on commit 88d9a76

Please sign in to comment.