This is an automated email from the ASF dual-hosted git repository.

hgruszecki pushed a commit to branch consumer-reconnect-fix
in repository https://gitbox.apache.org/repos/asf/iggy.git

commit d8ceb5807dc93ceab15b7846fde9a554928f828b
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Mon Jan 26 13:39:09 2026 +0100

    fix(sdk): prevent client from getting stuck after disconnect
    
    NotConnected error was not triggering reconnection logic, causing
    clients to remain permanently disconnected when heartbeat or poll
    operations failed after connection loss.
---
 core/sdk/src/tcp/tcp_client.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/sdk/src/tcp/tcp_client.rs b/core/sdk/src/tcp/tcp_client.rs
index 571f1b7cb..0ff62179c 100644
--- a/core/sdk/src/tcp/tcp_client.rs
+++ b/core/sdk/src/tcp/tcp_client.rs
@@ -120,6 +120,8 @@ impl BinaryTransport for TcpClient {
                 | IggyError::EmptyResponse
                 | IggyError::Unauthenticated
                 | IggyError::StaleClient
+                | IggyError::NotConnected
+                | IggyError::CannotEstablishConnection
         ) {
             return Err(error);
         }

Reply via email to