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
ignore error when counting closed connections
Chris Lu9232d3ac68a8
diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.goindex b8068e67f0..8acd50d42d 100644--- a/weed/util/net_timeout.go+++ b/weed/util/net_timeout.go@@ -66,11 +66,8 @@ func (c *Conn) Write(b []byte) (count int, e error) {}func (c *Conn) Close() error {- err := c.Conn.Close()- if err == nil {- stats.ConnectionClose()- }- return err+ stats.ConnectionClose()+ return c.Conn.Close()}func NewListener(addr string, timeout time.Duration) (net.Listener, error) {