Thanks, I'll move to a shared context that persists for the duration of the process.
Sockets are one per thread, in fact, as the threads are re-used, each thread will create many sockets over its lifetime. -James On 30 September 2016 at 11:24, Luca Boccassi <[email protected]> wrote: > You can (and probably should as best practise) reuse the context, > which is thread safe. > > Do not use the same socket from multiple threads. There is a new > category of thread-safe sockets in libzmq master but the API is not > yet finalised. >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
