mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
improve http proxy effeciency
This commit is contained in:
1 parent
b3ec97058e
commit
e3a00d1400
2 files changed
+15
-13
No files matched your search
@@ -21,9 +21,9 @@ func NewChanReader(stream <-chan *alloc.Buffer) *ChanReader {
|
||||
}
|
||||
|
||||
func (this *ChanReader) fill() {
|
||||
b, ok := <-this.stream
|
||||
b, open := <-this.stream
|
||||
this.current = b
|
||||
if !ok {
|
||||
if !open {
|
||||
this.eof = true
|
||||
this.current = nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user