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
master: fix connections count reporting
Chris Lu4bc19f1e523b
diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.goindex 8acd50d42d..edbb1a3b77 100644--- a/weed/util/net_timeout.go+++ b/weed/util/net_timeout.go@@ -35,6 +35,7 @@ type Conn struct {net.ConnReadTimeout time.DurationWriteTimeout time.Duration+ isClosed bool}func (c *Conn) Read(b []byte) (count int, e error) {@@ -66,7 +67,10 @@ func (c *Conn) Write(b []byte) (count int, e error) {}func (c *Conn) Close() error {- stats.ConnectionClose()+ if !c.isClosed {+ stats.ConnectionClose()+ c.isClosed = true+ }return c.Conn.Close()}