Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

skip connection reset error

Chris Lu3be061994fba
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index e891ae03b7..40e96fd8c7 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -235,8 +235,10 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
// print("+")
resp, post_err := HttpClient.Do(req)
if post_err != nil {
- glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
- debug.PrintStack()
+ if !strings.Contains(post_err.Error(), "connection reset by peer"){
+ glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
+ debug.PrintStack()
+ }
return nil, fmt.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
}
// print("-")