release payload after writting

pull/314/head
Darien Raymond 8 years ago
parent def8a19a7e
commit 1bbbb6e3cd
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save