good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 98779ee0 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Fix outdated close handshake docs

Closes #212
parent f7ef6b82
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ func (c *Conn) writeClose(code StatusCode, reason string) error { ...@@ -84,7 +84,7 @@ func (c *Conn) writeClose(code StatusCode, reason string) error {
func (c *Conn) waitCloseHandshake() error { func (c *Conn) waitCloseHandshake() error {
defer c.close(nil) defer c.close(nil)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10) ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel() defer cancel()
err := c.readMu.lock(ctx) err := c.readMu.lock(ctx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment