mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-14 10:08:35 +02:00
ignore error when counting closed connections
This commit is contained in:
1 parent
96c1ae8471
commit
9232d3ac68
1 file changed
+2
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user