[openstack-dev] [oslo.messaging][zmq] Redundant zmq.Context creation

ozamiatin ozamiatin at mirantis.com
Fri Jan 23 10:46:10 UTC 2015


Working on zmq driver I've noticed that for now zmq.Context is created 
per socket which is definitely redundant. That was introduced by the change


It makes the correct thing reducing the global context variable, but I 
think the context is still should have more global scope than per socket.

IMHO It should be created once per Reactor/Client or even per driver 

By the way (I didn't check it yet with current implementation of the 
driver) such approach should break the IPC, because such kind of sockets 
should be produced from the same context.

Oleksii Zamiatin

More information about the OpenStack-dev mailing list