Skip to content

Commit 7920ef4

Browse files
committedApr 7, 2025
Add comment detailing optimization
1 parent 49ad6a2 commit 7920ef4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎graphql/handler/transport/websocket.go

+2
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ func (c *wsConnection) close(closeCode int, message string) {
563563
// either we get net.ErrClosed or some other error
564564
// either way, bail on the graceful shutdown as it's either
565565
// impossible or very likely not happening
566+
// TODO: optimize this to bypass the select statement to avoid
567+
// waiting the entire closeTimeout
566568
if err != nil {
567569
return
568570
}

0 commit comments

Comments
 (0)