Skip to content

Commit

Permalink
return AlertStatelessRetry after sending a HelloRetryRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Nov 14, 2017
1 parent a347204 commit 6fe79a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@ func (c *Conn) Handshake() Alert {
c.hState = state
logf(logTypeHandshake, "state is now %s", c.GetHsState())
_, connected = state.(StateConnected)

if c.config.NonBlocking && alert == AlertStatelessRetry {
return AlertStatelessRetry
}
}

c.state = state.(StateConnected)
Expand Down

0 comments on commit 6fe79a8

Please sign in to comment.