Skip to content

Commit

Permalink
fix: close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Apr 10, 2024
1 parent a77e9c6 commit ca96891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fasthttpproxy/proxy_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
req += "\r\n"

if _, err := conn.Write([]byte(req)); err != nil {
conn.Close()
return nil, err
}

Expand Down

0 comments on commit ca96891

Please sign in to comment.