# File lib/chef/index_queue/amqp_client.rb, line 76
      def send_action(action, data)
        retries = 0
        begin
          exchange.publish({"action" => action.to_s, "payload" => data}.to_json)
        rescue Bunny::ServerDownError, Bunny::ConnectionError, Errno::ECONNRESET
          disconnected!
          if (retries += 1) < 2
            Chef::Log.info("Attempting to reconnect to the AMQP broker")
            retry
          else
            Chef::Log.fatal("Could not re-connect to the AMQP broker, giving up")
            raise
          end
        end
      end