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 c433f46 commit 362a52fCopy full SHA for 362a52f
http.go
@@ -83,8 +83,10 @@ func (lo *localConn) handleHTTP() {
83
if *verbose {
84
logger.Printf("H %5d: * Local connection reset. Sent %d bytes.", lo.total, totalBytes)
85
}
86
- if tcp, ok := (*re.conn).(*net.TCPConn); ok {
87
- tcp.SetLinger(0)
+ if re.conn != nil {
+ if tcp, ok := (*re.conn).(*net.TCPConn); ok {
88
+ tcp.SetLinger(0)
89
+ }
90
91
} else if strings.Contains(err.Error(), "malformed") {
92
0 commit comments