Skip to content

Multiple thread spawning, ZeroMQ port creates redundant zmq.Context() Instances #472

Description

@GREENRAT-K405
  • Currently, the ZeroMQPort class in concore.py instantiates a new zmq.Context() for every individual port rather than sharing a single context across all ports within the process.
  • While going through the official ZeroMQ documentation, the recommended pattern is to maintain exactly one context per process.
  • I think this is probably unintentional. I Would like to know your call on this @pradeeban @Rahuljagwani , this issue doesn't break much but deviates away from ZeroMQ design.
  • There should be a single, shared ZeroMQ context for the entire process. The intended ZMQ design is to create one zmq.Context() at the module level

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions