mongrel2-cpp
mongrel2-cpp copied to clipboard
Add connection.poll()
Previously there was no way for a single threaded program to be able to multiplex mongrel2 messages and data moving in or out of other file descriptors. This new connection.poll() functionality supports that use case.
A return value of INT_MAX indicates that there is a message waiting on the mongrel2 zmq socket (they are always prioritized), otherwise it behaves like a regular poll().