mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Fix VMess inbound for empty response
This commit is contained in:
parent
6f5b54747e
commit
96ec5cfc58
@ -227,10 +227,11 @@ func (this *VMessInboundHandler) HandleConnection(connection internet.Connection
|
||||
}
|
||||
output.Release()
|
||||
if request.Option.Has(protocol.RequestOptionChunkStream) {
|
||||
if err := v2writer.Write(alloc.NewSmallBuffer().Clear()); err != nil {
|
||||
if err := v2writer.Write(alloc.NewLocalBuffer(32).Clear()); err != nil {
|
||||
connection.SetReusable(false)
|
||||
}
|
||||
}
|
||||
writer.Flush()
|
||||
v2writer.Release()
|
||||
|
||||
readFinish.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user