enhanced conneciton upgrade handling in http proxy code

This commit is contained in:
2024-12-25 02:14:47 +09:00
parent c1f7c5d4c2
commit 2424a63db9
4 changed files with 123 additions and 150 deletions

View File

@ -1299,6 +1299,7 @@ func (c *Client) ReqStop() {
var cts *ClientConn
var ctl *http.Server
c.ctx_cancel()
for _, ctl = range c.ctl {
ctl.Shutdown(c.ctx) // to break c.ctl.ListenAndServe()
}
@ -1308,7 +1309,6 @@ func (c *Client) ReqStop() {
}
c.stop_chan <- true
c.ctx_cancel()
}
}