Problem: linger values other than -1 or 0 are unsafe

Solution: set defaults back to infinity, and add new context
option, ZMQ_BLOCKY that the user can set to false to get a
less surprising behavior on context termination. Eg.

    zmq_ctx_set (ctx, ZMQ_BLOCKY, false);
This commit is contained in:
Pieter Hintjens
2014-11-17 11:56:59 +01:00
parent f448af948d
commit b6e61d72b2
8 changed files with 56 additions and 5 deletions

View File

@@ -187,6 +187,9 @@ namespace zmq
// Number of I/O threads to launch.
int io_thread_count;
// Does context wait (possibly forever) on termination?
bool blocky;
// Is IPv6 enabled on this context?
bool ipv6;