rabbitmq / rabbitmq-stream-go-client

A client library for RabbitMQ streams
MIT License
170 stars 20 forks source link

Missing heart beat closing does not raise the correct notification #362

Open Gsantomaggio opened 21 hours ago

Gsantomaggio commented 21 hours ago

Describe the bug

The close notification is incorrect when the client is closed due to a missing heartbeat. So the client can't be reconnected. The client should consider the missing heartbeat as an error.

Reproduction steps

It should be enough to do the same: https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/issues/393

Expected behavior

Raise the socket closed error so the client can reconnect.

Additional context

No response