improve http proxy effeciency

This commit is contained in:
v2ray committed 2015-12-16 16:37:32 +01:00
1 parent b3ec97058e
commit e3a00d1400
2 files changed
+15 -13

No files matched your search

+2 -2
View File
@@ -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
}