Skip to content

Commit

Permalink
Set router sock opt
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Sep 26, 2022
1 parent efd7c1d commit ac1d70b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/maggma/cli/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def manager(

logger.info(f"Binding to Manager URL {url}:{port}")
context = zmq.Context()
context.setsockopt(opt=zmq.SocketOption.ROUTER_MANDATORY, value=1)
socket = context.socket(zmq.ROUTER)
socket.bind(f"{url}:{port}")

Expand Down

0 comments on commit ac1d70b

Please sign in to comment.