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:
parent
ff69ac7a0e
commit
77ecd1649b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user