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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: linearize timeout for large chunk of data
Chris Luc127da12194e
diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.goindex f057a8f5b6..e8075c297a 100644--- a/weed/util/net_timeout.go+++ b/weed/util/net_timeout.go@@ -54,7 +54,8 @@ func (c *Conn) Read(b []byte) (count int, e error) {func (c *Conn) Write(b []byte) (count int, e error) {if c.WriteTimeout != 0 {- err := c.Conn.SetWriteDeadline(time.Now().Add(c.WriteTimeout))+ // minimum 4KB/s+ err := c.Conn.SetWriteDeadline(time.Now().Add(c.WriteTimeout * time.Duration(len(b)/40000+1)))if err != nil {return 0, err}