mongrel2-cpp icon indicating copy to clipboard operation
mongrel2-cpp copied to clipboard

Add connection.poll()

Open cpick opened this issue 9 years ago • 0 comments

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().

cpick avatar Jul 23 '15 20:07 cpick