parameters: (self, connection)
docstring: Mark a connection as dead (failed) in the connection pool. If sniffing
          on failure is enabled this will initiate the sniffing process.
  
          :arg connection: instance of :class:`~elasticsearch.Connection` that failed
docstring_summary: Mark a connection as dead (failed) in the connection pool. If sniffing
          on failure is enabled this will initiate the sniffing process.
docstring_tokens: Mark a connection as dead ( failed ) in the connection pool . If sniffing on failure is enabled this will initiate the sniffing process .
function: def mark_dead(self, connection):
          """
          Mark a connection as dead (failed) in the connection pool. If sniffing
          on failure is enabled this will initiate the sniffing process.
  
          :arg connection: instance of :class:`~elasticsearch.Connection` that failed
          """
          # mark as dead even when sniffing to avoid hitting this host during the sniff process
          self.connection_pool.mark_dead(connection)
          if self.sniff_on_connection_fail:
              self.sniff_hosts()
function_tokens: def mark_dead ( self , connection ) : # mark as dead even when sniffing to avoid hitting this host during the sniff process self . connection_pool . mark_dead ( connection ) if self . sniff_on_connection_fail : self . sniff_hosts ( )