mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix error handling in mux
This commit is contained in:
parent
2b675335bd
commit
435be61661
@ -208,6 +208,7 @@ func (m *Client) handleStatusKeep(meta *FrameMetadata, reader *buf.BufferedReade
|
||||
s.input.CloseError()
|
||||
return s.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return drain(reader)
|
||||
}
|
||||
@ -368,6 +369,7 @@ func (w *ServerWorker) handleStatusKeep(meta *FrameMetadata, reader *buf.Buffere
|
||||
s.input.CloseError()
|
||||
return s.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return drain(reader)
|
||||
}
|
||||
|
@ -77,7 +77,6 @@ func NewStreamReader(reader *buf.BufferedReader) *StreamReader {
|
||||
// ReadMultiBuffer implmenets buf.Reader.
|
||||
func (r *StreamReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
|
||||
if r.leftOver == 0 {
|
||||
r.leftOver = -1
|
||||
return nil, io.EOF
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user