Changeset 312 in code for trunk/conn.go


Ignore:
Timestamp:
Jun 4, 2020, 10:18:51 AM (5 years ago)
Author:
contact
Message:

Close net.Conn in conn.Close

Close the connection in conn.Close. This ensures the connection isn't
still alive after conn.Close, which would cause issues when
disconnecting and reconnecting quickly to an upstream server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/conn.go

    r280 r312  
    8585        }
    8686
     87        err := c.net.Close()
    8788        c.closed = true
    8889        close(c.outgoing)
    89         return nil
     90        return err
    9091}
    9192
Note: See TracChangeset for help on using the changeset viewer.