From f418e1b8b4a20853d013ffbdc3940e5c896697b4 Mon Sep 17 00:00:00 2001 From: zmstone Date: Tue, 27 Aug 2024 08:24:41 +0200 Subject: [PATCH 1/2] fix: socket write error should not result in a crash report --- src/kpro_connection.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kpro_connection.erl b/src/kpro_connection.erl index 8aca105..f489e98 100644 --- a/src/kpro_connection.erl +++ b/src/kpro_connection.erl @@ -483,7 +483,7 @@ send_request({From, {send, Request}}, , {caller, Caller} , {reason, Reason0} ], - exit({send_error, Reason}) + exit({shutdown, Reason}) end, State#state{requests = NewRequests}. From a2cb69f274017f12458950a3e2592c7842dca4aa Mon Sep 17 00:00:00 2001 From: zmstone Date: Tue, 27 Aug 2024 08:34:11 +0200 Subject: [PATCH 2/2] docs: add changelog --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 5dc8c9e..4adb414 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +* 4.1.8 + - Avoid generating crash-report when failed to write socket [PR#124](https://github.com/kafka4beam/kafka_protocol/pull/124) + * 4.1.7 - Automatically re-authenticate before session lifetime expires if SASL authentication module returns `{ok, ServerResponse}` and ServerResponse