mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-04 08:15:21 -05:00
ensure buffer is completely filled in
This commit is contained in:
@@ -73,7 +73,7 @@ func (r *ChunkStreamReader) readSize() (uint16, error) {
|
||||
return 0, err
|
||||
}
|
||||
}
|
||||
common.Must2(r.leftOver.Read(r.buffer))
|
||||
common.Must2(io.ReadFull(&r.leftOver, r.buffer))
|
||||
return r.sizeDecoder.Decode(r.buffer)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user