From 579131fb5fc63745e0cbcaf5e906413b34a5ee2a Mon Sep 17 00:00:00 2001 From: Kirill Reshke Date: Wed, 11 Sep 2024 18:15:09 +0300 Subject: [PATCH] Close encrpted writer in offload --- pkg/proc/interaction.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/proc/interaction.go b/pkg/proc/interaction.go index d9dae5b..016e4c2 100644 --- a/pkg/proc/interaction.go +++ b/pkg/proc/interaction.go @@ -134,6 +134,13 @@ func ProcessPutExtended( return } + if encrypt { + if err := w.Close(); err != nil { + ylogger.Zero.Error().Err(err).Msg("failed to close connection") + return + } + } + ylogger.Zero.Debug().Msg("closing msg writer") return }