1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-22 21:49:10 -04:00

release payload after writting

This commit is contained in:
Darien Raymond
2016-11-19 22:39:18 +01:00
parent def8a19a7e
commit 1bbbb6e3cd

View File

@@ -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)