s3: increase timeout limit

https://github.com/chrislusf/seaweedfs/issues/2541
This commit is contained in:
chrislu
2021-12-29 22:21:02 -08:00
parent d351541757
commit 5788bf2270
3 changed files with 25 additions and 4 deletions

View File

@@ -364,7 +364,9 @@ func passThroughResponse(proxyResponse *http.Response, w http.ResponseWriter) (s
statusCode = proxyResponse.StatusCode
}
w.WriteHeader(statusCode)
io.Copy(w, proxyResponse.Body)
if n, err := io.Copy(w, proxyResponse.Body); err != nil {
glog.V(1).Infof("passthrough response read %d bytes: %v", n, err)
}
return statusCode
}