We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da910c commit c9a634dCopy full SHA for c9a634d
proxy/utils.go
@@ -66,7 +66,10 @@ func HTTPClientLocalhost(maxOpenConnections int) *http.Client {
66
Timeout: 1 * time.Second,
67
}).DialContext(ctx, network, addr)
68
if err == nil {
69
- _ = c.(*net.TCPConn).SetNoDelay(true) // <-- ACK immediately
+ tcp, ok := c.(*net.TCPConn)
70
+ if ok {
71
+ err = tcp.SetNoDelay(true) // <-- ACK immediately
72
+ }
73
}
74
return c, err
75
},
0 commit comments