Skip to content

Commit

Permalink
Expand coverage of idle connection reap message check (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-quix authored Jul 31, 2023
1 parent fbf6e06 commit 3c4ff11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private void OnErrorOccurredHandler(KafkaException exception)
return;
}

if (exception.Message.Contains("Receive failed: Connection timed out (after "))
if (exception.Message.Contains("Receive failed") && exception.Message.Contains("Connection timed out (after "))
{
var match = Constants.ExceptionMsRegex.Match(exception.Message);
if (match.Success)
Expand Down

0 comments on commit 3c4ff11

Please sign in to comment.