rabbitmq / rabbitmq-stream-rust-client

A client library for RabbitMQ streams
Other
152 stars 14 forks source link

Producer close does not terminate socket on server side #180

Closed DataFrogman closed 1 year ago

DataFrogman commented 1 year ago

Describe the bug

When the close method is called on the producer it does not close the socket on the rabbitmq server (it does not appear to actually close the socket locally). As a result, over time the server will gradually be depleted of resources. All of the sockets appear to still operate heartbeats, the connections and heartbeat transmissions are visible on the management ui.

Reproduction steps

  1. In a loop create a producer
  2. Call the close method on the producer
  3. Monitor the sockets on the rabbitmq server, they will stay connected

Expected behavior

Calling the close method should gracefully terminate the producer and terminate the socket on the server.

Additional context

No response

DataFrogman commented 1 year ago

That works perfectly, my instance shows that the sockets are closing properly now. Thank you!