Yes, i could do that. But for the moment, i'm looking for the easy way of configuring the timeout !
2015-07-02 22:09 GMT+02:00 John Jelinek <[email protected]>: > Have you considered returning a queue object that will provide a URL where > the result of the long-running task can be accessed after it has been > processed in a queue? You can start polling that until the data is > available. > > — > Sent from Mailbox <https://www.dropbox.com/mailbox> > > > On Thu, Jul 2, 2015 at 2:33 PM, Julien Mascart < > [email protected]> wrote: > >> Hello all, >> >> I am using mongrel2 with some zmq handlers in "back-end". >> >> mongrel2 knows how to communicate with the zmq handlers by the >> configuration, eg: >> handler_test = Handler(send_spec=’tcp://127.0.0.1:9997’, >> send_ident=’34f9ceee-cd52-4b7f-b197-88bf2f0ec378’, >> >> Â recv_spec=’tcp://127.0.0.1:9996’, recv_ident=’’) >> >> >> I have a zmq handler that may be slow to answer (eg 5 minutes). It seems >> t hat mongrel2 does not wait for so long and answers the HTTP client with >> an empty answer, before the zmq handler actually replied. Is it possible to >> configure the timeout for the handlers ? >> >> Thanks >> >> > -- *Julien MASCART | Developer* Nadra Technologies S.A.S. - Cap Oméga | Rond-point Benjamin Franklin, CS 39521 | 34960 Montpellier Cedex 2 | France
