Unverified Commit 003f8ee1 authored by Nick Hill's avatar Nick Hill Committed by GitHub
Browse files

[BugFix] Use IP4 localhost form for zmq bind (#7163)

parent e9630458
......@@ -30,7 +30,9 @@ class AsyncEngineRPCServer:
# Init socket for readiness state.
self.socket = self.context.socket(zmq.constants.ROUTER)
self.socket.bind(f"tcp://localhost:{port}")
# Note numeric form of localhost should be used for zmq bind(),
# see https://stackoverflow.com/a/8958414
self.socket.bind(f"tcp://127.0.0.1:{port}")
def cleanup(self):
"""Cleanup all resources."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment