Esempio n. 1
0
 def _makeOne(self, channel=None, request=None):
     if channel is None:
         channel = DummyChannel()
     if request is None:
         request = DummyParser()
     from waitress.task import WSGITask
     return WSGITask(channel, request)
Esempio n. 2
0
 def aiofinish(self, f):
     app_iter = f.result()
     self.aioexecute(app_iter)
     Task.finish(self)
     if self.close_on_finish:  # pragma: no cover
         self.channel.transport.close()
Esempio n. 3
0
 def aiofinish(self, f):
     app_iter = f.result()
     self.aioexecute(app_iter)
     Task.finish(self)
     if self.close_on_finish:  # pragma: no cover
         self.channel.transport.close()