Idle WebSTOMP connection is closed in 60 seconds if the outgoing heartbeat is disabled

237 views
Skip to first unread message

Deepak Kumar

unread,
Mar 24, 2021, 12:39:27 AM3/24/21
to rabbitm...@googlegroups.com

Hi,

I have tested this with the RabbitMQ server 3.8.14 with several sets of incoming/outgoing heartbeats:

  • 0, 0 - disconnects
  • 0, 10000 - does not disconnect
  • 10000, 0 - disconnects
  • 10000, 10000 - does not disconnect

If the outgoing heartbeat is disabled (i.e., when set to 0), the connection is closed in 60 seconds. In each combination, the client log shows incoming/outgoing pings sent/received as expected. The server log (set at debug level) does not show any errors.

I have tested with few older versions:

  • 3.6.16 shows correct behavior - it does not automatically disconnects in any of the combinations.
  • 3.7.28 shows the same issue
All the tests have been carried out using:
  • Official rabbitmq alpine docker images with rabbitmq_web_stomp plugin enabled
  • @stomp/stompjs javascript library
  • Chrome/Firefox

I can provide the following information if it helps:

  • Sample code that I used
  • rabbitmq server config
  • console logs

With best regards,
Deepak.


Reply all
Reply to author
Forward
0 new messages