def handle_request(self, *args): # pragma: no cover
"""
Apply the configured 'timeout' value to each individual request.
Note that self.timeout is set to half the configured timeout by
the arbiter, so we use the value directly from the config.
"""
with gevent.Timeout(self.cfg.timeout):
return super(GeventWorker, self).handle_request(*args)
评论列表
文章目录