lahsivjar / react-stomp

React websocket component for STOMP protocol over SockJs
https://www.npmjs.com/package/react-stomp
MIT License
134 stars 41 forks source link

Link Multiplexing Problem After Reconnection #196

Open omercelikceng opened 3 years ago

omercelikceng commented 3 years ago

I am using;

I installed RabbitMQ cluster with 3 instances.

My issue is : If I close one of the instance in the cluster, my websocket connections get multiplexed.

I searched the issue but couldn't find anything. I notice that when one of the nodes is down, the client is periodically requesting reconnection. In my opinion, this is expected behaviour. However, I see that the number of connections increases more than the previous state when the connection is successfully performed.

For example ; there are 20 connections at the beginning. When one of the rabbit nodes falls, the number of connections decreases first(for example : 12), then client requests a reconnection then connection number increases to 30 which is more than the initial connection number 20.

What's the point I am missing if exists? Can anyone help me?