mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
Fix second muxclient context leak (#18987)
Subrouted requests were also leaking contexts in mux clients. Similar to #18956
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user