Commit 6b8eed5
committed
fix(client): suppress write error log during reconnect
Cloudflare hard-resets WSS after 300s. The UDP→WSS goroutine from the
previous connection races to write a packet to the closed socket and
logs a spurious error. Suppress it when subCtx is already cancelled
(i.e. the reconnect was expected, not a real write failure).1 parent b42d2f4 commit 6b8eed5
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
0 commit comments