mirror of
https://github.com/minio/minio.git
synced 2025-04-21 19:14:39 -04:00
fix: add a default requests deadline when deadline is 0 (#19287)
This commit is contained in:
parent
f168ef9989
commit
741de4cf94
@ -291,7 +291,11 @@ func (t *apiConfig) getRequestsPool() (chan struct{}, time.Duration) {
|
|||||||
defer t.mu.RUnlock()
|
defer t.mu.RUnlock()
|
||||||
|
|
||||||
if t.requestsPool == nil {
|
if t.requestsPool == nil {
|
||||||
return nil, time.Duration(0)
|
return nil, 10 * time.Second
|
||||||
|
}
|
||||||
|
|
||||||
|
if t.requestsDeadline <= 0 {
|
||||||
|
return t.requestsPool, 10 * time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
return t.requestsPool, t.requestsDeadline
|
return t.requestsPool, t.requestsDeadline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user