mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
close connection without error
This commit is contained in:
@@ -182,9 +182,8 @@ func (c *interConn) Write(b []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (c *interConn) Close() error {
|
||||
c.stream.CancelRead(1)
|
||||
c.stream.CancelWrite(1)
|
||||
return nil
|
||||
c.stream.CancelRead(0x00)
|
||||
return c.stream.Close()
|
||||
}
|
||||
|
||||
func (c *interConn) LocalAddr() net.Addr {
|
||||
|
||||
Reference in New Issue
Block a user