mirror of https://github.com/v2ray/v2ray-core
fix test break
parent
ff69ac7a0e
commit
77ecd1649b
|
@ -149,13 +149,13 @@ func (this *VMessInboundHandler) HandleConnection(connection *hub.TCPConn) {
|
||||||
defer readFinish.Unlock()
|
defer readFinish.Unlock()
|
||||||
bodyReader := session.DecodeRequestBody(reader)
|
bodyReader := session.DecodeRequestBody(reader)
|
||||||
var requestReader v2io.ReleasableReader
|
var requestReader v2io.ReleasableReader
|
||||||
defer requestReader.Release()
|
|
||||||
if request.Option.IsChunkStream() {
|
if request.Option.IsChunkStream() {
|
||||||
requestReader = vmessio.NewAuthChunkReader(bodyReader)
|
requestReader = vmessio.NewAuthChunkReader(bodyReader)
|
||||||
} else {
|
} else {
|
||||||
requestReader = v2io.NewAdaptiveReader(bodyReader)
|
requestReader = v2io.NewAdaptiveReader(bodyReader)
|
||||||
}
|
}
|
||||||
v2io.ReaderToChan(input, requestReader)
|
v2io.ReaderToChan(input, requestReader)
|
||||||
|
requestReader.Release()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
writer := v2io.NewBufferedWriter(connection)
|
writer := v2io.NewBufferedWriter(connection)
|
||||||
|
|
Loading…
Reference in New Issue