zeromq/libzmq — pull request #383 by Kobolog (2012-06-16 22:42:44+00:00)
Title: Reworked ZMQ_FAIL_UNROUTABLE to actually work as it was intended.

Hello,

I've reworked my previous patch about ZMQ_FAIL_UNROUTABLE socket option enabling ROUTER sockets to verbosely fail on unroutable messages.

This new patch renames the socket option to ZMQ_ROUTER_BEHAVIOR. A value of '0' specifies the old default behavior, where unroutable messages are being disvarded, while '1' forces the socket to fail with an EAGAIN error code on unroutable messages, enabling the library user to use blocking sends, sends with timeout and other useful stuff while waiting for the peer to appear, like with the other socket types.

Also, includes tests for this new feature.