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