1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix test break

This commit is contained in:
v2ray 2016-03-13 11:34:09 +01:00
parent ff69ac7a0e
commit 77ecd1649b

View File

@ -149,13 +149,13 @@ func (this *VMessInboundHandler) HandleConnection(connection *hub.TCPConn) {
defer readFinish.Unlock()
bodyReader := session.DecodeRequestBody(reader)
var requestReader v2io.ReleasableReader
defer requestReader.Release()
if request.Option.IsChunkStream() {
requestReader = vmessio.NewAuthChunkReader(bodyReader)
} else {
requestReader = v2io.NewAdaptiveReader(bodyReader)
}
v2io.ReaderToChan(input, requestReader)
requestReader.Release()
}()
writer := v2io.NewBufferedWriter(connection)