mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Remove timeout from putobject and listobjects (#9986)
Use a separate client for these calls that can take a long time. Add request context to these so they are canceled when the client disconnects instead except for ListObject which doesn't have any equivalent.
This commit is contained in:
@@ -406,7 +406,7 @@ func (web *webAPIHandlers) ListObjects(r *http.Request, args *ListObjectsArgs, r
|
||||
}
|
||||
return toJSONError(ctx, err, args.BucketName)
|
||||
}
|
||||
core, err := getRemoteInstanceClient(r, getHostFromSrv(sr))
|
||||
core, err := getRemoteInstanceClientLongTimeout(r, getHostFromSrv(sr))
|
||||
if err != nil {
|
||||
return toJSONError(ctx, err, args.BucketName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user