Skip to content

Commit 98779ee

Browse files
committed
Fix outdated close handshake docs
Closes #212
1 parent f7ef6b8 commit 98779ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

close_notjs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (c *Conn) writeClose(code StatusCode, reason string) error {
8484
func (c *Conn) waitCloseHandshake() error {
8585
defer c.close(nil)
8686

87-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
87+
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
8888
defer cancel()
8989

9090
err := c.readMu.lock(ctx)

0 commit comments

Comments
 (0)