mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-27 14:26:11 -04:00
release payload after writting
This commit is contained in:
parent
def8a19a7e
commit
1bbbb6e3cd
@ -100,9 +100,10 @@ func (this *VMessOutboundHandler) handleRequest(session *encoding.ClientSession,
|
||||
}
|
||||
if !payload.IsEmpty() {
|
||||
if err := streamWriter.Write(payload); err != nil {
|
||||
log.Info("VMess|Outbound: Failed to write payload. Disabling connection reuse.")
|
||||
log.Info("VMess|Outbound: Failed to write payload. Disabling connection reuse.", err)
|
||||
conn.SetReusable(false)
|
||||
}
|
||||
payload.Release()
|
||||
}
|
||||
writer.SetCached(false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user