def _reset_timeout(self):
        """Reset timeout for date keep alive."""
        if self._timeout:
            self._timeout.cancel()
        self._timeout = self.loop.call_later(self.client.timeout,
                                             self.transport.close)
def _reset_timeout ( self ) : if self . _timeout : self . _timeout . cancel ( ) self . _timeout = self . loop . call_later ( self . client . timeout , self . transport . close )
Reset timeout for date keep alive.