Skip to content

Commit

Permalink
feat: add closeNoResetBuffer method for standard network (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duslia authored Sep 26, 2022
1 parent 6241987 commit f4db636
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/network/standard/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ func (c *Conn) Close() error {
return c.c.Close()
}

// CloseNoResetBuffer closes the connection without reset buffer.
func (c *Conn) CloseNoResetBuffer() error {
return c.c.Close()
}

// LocalAddr returns the local address of the connection.
func (c *Conn) LocalAddr() net.Addr {
return c.c.LocalAddr()
Expand Down

0 comments on commit f4db636

Please sign in to comment.