* VRFS-594 - sending heartbeat ack down in response to heartbeat

This commit is contained in:
Seth Call 2013-09-01 02:17:38 +00:00
parent ba73548616
commit 062a5299b8
1 changed files with 4 additions and 0 deletions

View File

@ -551,6 +551,10 @@ module JamWebsockets
end if connection.stale?
end
heartbeat_ack = @message_factory.heartbeat_ack()
send_to_client(client, heartbeat_ack)
# send errors to clients in response to heartbeats if rabbitmq is down
if !@amqp_connection_manager.connected?
error_msg = @message_factory.server_bad_state_error(heartbeat_message_id, "messaging system down")