From: Michael Tremer Date: Thu, 26 May 2022 09:06:41 +0000 (+0000) Subject: hub: Drop long poll mixin X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66d5db71d46b4cc4495435fd6fb1c247c5c37070;p=pbs.git hub: Drop long poll mixin Signed-off-by: Michael Tremer --- diff --git a/src/hub/handlers.py b/src/hub/handlers.py index fcdf5089..8164dfee 100644 --- a/src/hub/handlers.py +++ b/src/hub/handlers.py @@ -16,27 +16,7 @@ from .. import users log = logging.getLogger("pakfire.hub") -class LongPollMixin(object): - def initialize(self): - self._start_time = time.time() - - def add_timeout(self, timeout, callback): - deadline = time.time() + timeout - - return self.application.ioloop.add_timeout(deadline, callback) - - def on_connection_close(self): - logging.debug("Connection closed unexpectedly") - - def connection_closed(self): - return self.request.connection.stream.closed() - - @property - def runtime(self): - return time.time() - self._start_time - - -class BaseHandler(LongPollMixin, tornado.web.RequestHandler): +class BaseHandler(tornado.web.RequestHandler): @property def backend(self): """