HI,
If your response is so slow you should considered using a Server Side
Event type connection
(http://www.html5rocks.com/en/tutorials/eventsource/basics/)? I have
successfully implemented SSE using Mongrel2 on a Node.js handler.
Regards,
Dónal.
On 02/07/2015 19:32, Julien Mascart 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
<http://127.0.0.1:9997/>’,
send_ident=’34f9ceee-cd52-4b7f-b197-88bf2f0ec378’,
< span
style="font-size:12px;font-family:monospace;color:rgb(0,0,0);white-space:nowrap">
recv_spec=’tcp://127.0.0.1:9996 <http://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
--
*Dónal McCarthy*
Technical Lead
Data Mining & Social Computing, TSSG
Telecommunications Software & Systems Group (TSSG),
ArcLabs Research and Innovation Building,
Waterford Institute of Technology,
Carriganore Campus, Carriganore,
Co. Waterford, Ireland
*Tel:* +353 (0)51 30 2977
*Fax:* +353 (0)51 341 100 <tel:+353-51-341-100>
*E-mail:* [email protected] <mailto:[email protected]>
*LinkedIn: *ie.linkedin.com/pub/donal-mccarthy/3/a06/646/
www.tssg.org <http://www.tssg.org>
TSSG Signature <http://www.tssg.org>