mirror of
https://github.com/minio/minio.git
synced 2025-04-16 00:49:09 -04:00
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 {
|
if debugReqs {
|
||||||
fmt.Println(client.MuxID, c.String(), "Subroute.Request: DELETING MUX")
|
fmt.Println(client.MuxID, c.String(), "Subroute.Request: DELETING MUX")
|
||||||
}
|
}
|
||||||
|
client.cancelFn(context.Canceled)
|
||||||
c.outgoing.Delete(client.MuxID)
|
c.outgoing.Delete(client.MuxID)
|
||||||
}()
|
}()
|
||||||
return client.traceRoundtrip(ctx, c.trace, h, req)
|
return client.traceRoundtrip(ctx, c.trace, h, req)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user