Browse Source

ignore error when counting closed connections

tcp_read
Chris Lu 5 years ago
parent
commit
9232d3ac68
  1. 7
      weed/util/net_timeout.go

7
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) {

Loading…
Cancel
Save