To avoid creating a new ZMQ connection for every message sent to a remote broker, implement pooling and re-use of ZmqClient objects and associated ZMQ context. A pool is created for each remote endpoint (keyed by address); the size of each pool is configured using rpc_conn_pool_size. All outbound message client connections are pooled. Closes-Bug: 1384113 Change-Id: Ia55d5c310a56e51df5e2f5d39e561a4da3fe4d83
2.8 KiB
2.8 KiB