fix: close idle connections
This commit is contained in:
parent
503b1efd8a
commit
baee951657
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ func (dc *dohClient) doRequest(req *http.Request) (msg *D.Msg, err error) {
|
|||
} else {
|
||||
if dc.firstTest.CAS(true, false) {
|
||||
dc.supportH3.Store(true)
|
||||
_ = dc.transport.CloseIdleConnections
|
||||
dc.transport.CloseIdleConnections()
|
||||
dc.transport = nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue