mirror of
https://github.com/minio/minio.git
synced 2025-11-25 20:16:10 -05:00
Add response header timeouts (#9170)
- Add conservative timeouts upto 3 minutes for internode communication - Add aggressive timeouts of 30 seconds for gateway communication Fixes #9105 Fixes #8732 Fixes #8881 Fixes #8376 Fixes #9028
This commit is contained in:
@@ -2050,7 +2050,7 @@ func (web *webAPIHandlers) LoginSTS(r *http.Request, args *LoginSTSArgs, reply *
|
||||
}
|
||||
|
||||
clnt := &http.Client{
|
||||
Transport: NewCustomHTTPTransport(),
|
||||
Transport: NewGatewayHTTPTransport(),
|
||||
}
|
||||
|
||||
resp, err := clnt.Do(req)
|
||||
@@ -2059,6 +2059,7 @@ func (web *webAPIHandlers) LoginSTS(r *http.Request, args *LoginSTSArgs, reply *
|
||||
return toJSONError(ctx, err)
|
||||
}
|
||||
defer xhttp.DrainBody(resp.Body)
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return toJSONError(ctx, errors.New(resp.Status))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user