1
0
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:
Darien Raymond 2016-11-19 22:39:18 +01:00
parent def8a19a7e
commit 1bbbb6e3cd
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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)