mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
ensure buffer is completely filled in
This commit is contained in:
parent
d5fd7efa7e
commit
cf080e8061
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user