mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
fix error reporting
This commit is contained in:
parent
7baa6977d3
commit
73a1111083
@ -80,6 +80,9 @@ func (server *Server) handleConnection(conn net.Conn) {
|
|||||||
for {
|
for {
|
||||||
mb, err := pReader.ReadMultiBuffer()
|
mb, err := pReader.ReadMultiBuffer()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err == io.EOF {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := w.WriteMultiBuffer(mb); err != nil {
|
if err := w.WriteMultiBuffer(mb); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user