mirror of https://github.com/minio/minio.git
Fix second muxclient context leak (#18987)
Subrouted requests were also leaking contexts in mux clients. Similar to #18956
This commit is contained in:
parent
22687c1f50
commit
9bcc46d93d
|
@ -360,6 +360,7 @@ func (c *Subroute) Request(ctx context.Context, h HandlerID, req []byte) ([]byte
|
|||
if debugReqs {
|
||||
fmt.Println(client.MuxID, c.String(), "Subroute.Request: DELETING MUX")
|
||||
}
|
||||
client.cancelFn(context.Canceled)
|
||||
c.outgoing.Delete(client.MuxID)
|
||||
}()
|
||||
return client.traceRoundtrip(ctx, c.trace, h, req)
|
||||
|
|
Loading…
Reference in New Issue