From df42db363110da79904b757db657df4382141f66 Mon Sep 17 00:00:00 2001 From: gagansingh355 <75354427+gagansingh355@users.noreply.github.com> Date: Mon, 18 Apr 2022 23:28:47 +0530 Subject: [PATCH] [receiver/fluentforward] Release port on shutdown (#9111) Thanks @gagansingh355 --- CHANGELOG.md | 2 ++ receiver/fluentforwardreceiver/receiver.go | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e30476333fd7..4b961ade3a7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ ### 🧰 Bug fixes 🧰 +- `fluentforwardreceiver`: Release port on shutdown (#9111) + ## v0.49.0 ### 🛑 Breaking changes 🛑 diff --git a/receiver/fluentforwardreceiver/receiver.go b/receiver/fluentforwardreceiver/receiver.go index 7f2cb88b2e14..c15b7fb1aec2 100644 --- a/receiver/fluentforwardreceiver/receiver.go +++ b/receiver/fluentforwardreceiver/receiver.go @@ -88,6 +88,7 @@ func (r *fluentReceiver) Start(ctx context.Context, _ component.Host) error { } func (r *fluentReceiver) Shutdown(context.Context) error { + r.listener.Close() r.cancel() return nil }