Closed chriswiggins closed 8 years ago
Can you describe how you've tested this?
Yeah sure sorry @postwait - we have a clustered RabbitMQ setup (3 hosts in HA) and HAProxy sitting in front of it. I've been testing by adding an iptables rule on the HAProxy server, dropping packets from HAProxy to a specific cluster member that the client is connected to. After 2 * heartbeat, the client would sometimes reconnect and sometimes not. By adding this option, (and setting it to true) the error is always thrown and the client reconnects to HAProxy, which in turn directs the TCP request at a host that it can reach.
Does that make sense? I wasn't sure how else to create a test scenario for it
Introduces a heartbeatForceReconnect option, when true will force the library to reconnect on a heartbeat failure.
Looks like this is needed based on other issues and I needed it for a project as well.