mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-12 09:08:27 +03:00
Don't report io.ErrClosedPipe from Session.AcceptStream.
This commit is contained in:
@@ -300,6 +300,10 @@ func acceptSessions(ln *kcp.Listener, privkey []byte, mtu int, upstream string)
|
||||
conn.Close()
|
||||
}()
|
||||
err := acceptStreams(conn, privkey, upstream)
|
||||
if err == io.ErrClosedPipe {
|
||||
// We don't want to report this error.
|
||||
err = nil
|
||||
}
|
||||
if err != nil {
|
||||
log.Printf("session %08x acceptStreams: %v", conn.GetConv(), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user