10:03 <alain_afpy> ERROR www(2) timed out
10:06 <alain_afpy> INFO www fixed
23:05 <GMLudo> haypo: yo ça roule ? j'aurais une question AsyncIO pour toi: j'aurais besoin de faire les connexions réseaux avec PostgreSQL lorsque je fais ctrl+C.
23:05 <GMLudo> haypo: le problème, pour faire ça, c'est une coroutine: http://aiopg.readthedocs.org/en/latest/core.html#aiopg.Pool.wait_closed
23:06 <GMLudo> haypo: or, add_signal_handler n'accepte que les fonctions simples: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.BaseEventLoop.add_signal_handler
23:21 <feth> j'ai bien une idée pourrie
23:21 <feth> genre tuple(wait_closed()) c'est une fonction
23:22 <feth> BaseEventLoop.add_signal_handler(SIGINT, tuple, wait_closed)
23:39 <GMLudo> haypo, feth: finalement, j'ai fait comme ça:
23:40 <GMLudo> def pre_stop(self):
23:40 <GMLudo> task = self.loop.create_task(self.stop())
23:40 <GMLudo> task.add_done_callback(self.post_stop)
23:40 <GMLudo> @asyncio.coroutine
23:40 <GMLudo> def stop(self):
23:40 <GMLudo> LOG.info('Stopping application...')
23:40 <GMLudo> def post_stop(self, future):
23:40 <GMLudo> self.loop.stop()
23:41 <GMLudo> avec ça comme signal_handler: loop.add_signal_handler(sig_num, self._app.pre_stop)
23:41 <GMLudo> haypo, si tu as une meilleure idée, je suis preneur