zeromq/zyre — pull request #72 by pijyoi (2012-12-17 17:27:55+00:00)
Title: allow caller to supply zctx to zre_interface and zre_log classes

This patch attempts to mitigate the following:
when running zre_tester on Windows XP, one gets an "Address already in use" assertion even with just 10 simulated interfaces.

By sharing zctx_t objects, we reduce the number of threads created (originally 12 per simulated interface) and the accompanying socketpairs and avoid causing the assertion.

This does change the constructor signature.

If this is acceptable, a similar change could be made for fmq_server and fmq_client classes.