Skip to content

Commit

Permalink
Merge pull request #13 from pabigot/issue/20210830a
Browse files Browse the repository at this point in the history
connection: clarify documented behavior of NotifyClose
  • Loading branch information
ChunyiLyu authored Sep 21, 2021
2 parents 29645df + 4a79eb7 commit bb8191b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ func (c *Connection) ConnectionState() tls.ConnectionState {
NotifyClose registers a listener for close events either initiated by an error
accompanying a connection.close method or by a normal shutdown.
On normal shutdowns, the chan will be closed.
The chan provided will be closed when the Channel is closed and on a
graceful close, no error will be sent.
To reconnect after a transport or protocol error, register a listener here and
re-run your setup process.
Expand Down

0 comments on commit bb8191b

Please sign in to comment.