mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(codersdk): abort in-progress writes/reads when closing websocket (#12650)
Fixes #9203 Related #12065 Also, adds some basic tracing infrastructure that we can build upon for more improvements.
This commit is contained in:
@@ -32,7 +32,7 @@ func (c *wsNetConn) Write(b []byte) (n int, err error) {
|
||||
}
|
||||
|
||||
func (c *wsNetConn) Close() error {
|
||||
defer c.cancel()
|
||||
c.cancel()
|
||||
return c.Conn.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user