mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
http: close remote conn after relay
This commit is contained in:
1 parent
486c455236
commit
39cd60c50b
7 files changed
+21
-12
No files matched your search
@@ -93,6 +93,7 @@ func (s *HTTP) servHTTPS(r *request, c net.Conn) {
|
||||
log.F("[http] %s <-> %s [c] via %s, error in dial: %v", c.RemoteAddr(), r.uri, p, err)
|
||||
return
|
||||
}
|
||||
defer rc.Close()
|
||||
|
||||
c.Write([]byte("HTTP/1.1 200 Connection established\r\n\r\n"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user