mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 09:26:21 -05:00
unexpected eof
This commit is contained in:
parent
ff0cb89efa
commit
b9c88b673b
@ -59,7 +59,7 @@ func (this *AuthChunkReader) Read() (*alloc.Buffer, error) {
|
|||||||
_, err := buffer.FillFrom(this.reader)
|
_, err := buffer.FillFrom(this.reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
buffer.Release()
|
buffer.Release()
|
||||||
return nil, err
|
return nil, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
length := serial.BytesToUint16(buffer.Value[:2])
|
length := serial.BytesToUint16(buffer.Value[:2])
|
||||||
@ -70,7 +70,7 @@ func (this *AuthChunkReader) Read() (*alloc.Buffer, error) {
|
|||||||
_, err := buffer.FillFrom(this.reader)
|
_, err := buffer.FillFrom(this.reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
buffer.Release()
|
buffer.Release()
|
||||||
return nil, err
|
return nil, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user