Fix For Handler-Down-Too-Many-Files Problem
- From:
- Zed A. Shaw
- Date:
- 2011-01-14 @ 21:53
I worked up a change to the src/tasks/fd.c code so that it tries to
send/recv 0mq messages before it attempts an mqwait. This *should* make
it run faster, and it should also stop problems with having the zmq_poll
socket set be some kind of limiter arbitrarily.
Now, if your handler is down, your requests will queue up and up and up
until your process dies because of one of the various random 0MQ asserts
that fire off.
Give the latest code a try and see if it holds up. I believe that this
could be a bad thing though because it means the 0mq send/recv loop can
dominate all other I/O.
--
Zed A. Shaw
http://zedshaw.com/