You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkoppanen edited this page Sep 14, 2010
·
6 revisions
The ini-setting ‘zeromq.persist_context’ defines whether the zmq context will be persisted over requests and must be set ‘On’ for persistent connections to work. Each combination of application/io threads creates a new context which is then persisted and re-used assuming ‘zeromq.persist_context’ is set ‘On’.
ZeroMQ socket takes optional second parameter for the constructor called ‘persistent_id’. This value is used as a key for persisting socket and retrieving over multiple requests. The persistent socket must be allocated using a persistent context and will fall back being non-persistent if ‘zeromq.persist_context’ is set ‘Off’.