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 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 > that 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
