We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f278afd + c97d9d7 commit c28644dCopy full SHA for c28644d
src/ZMQ.jl
@@ -58,8 +58,12 @@ import PrecompileTools: @compile_workload
58
59
s2=Socket(REQ)
60
61
- ZMQ.bind(s1, "tcp://*:5555")
62
- ZMQ.connect(s2, "tcp://localhost:5555")
+ ZMQ.bind(s1, "tcp://localhost:*")
+ # Strip the trailing null-terminator
63
+ last_endpoint = s1.last_endpoint[1:end - 1]
64
+ # Parse the port from the endpoint
65
+ port = parse(Int, split(last_endpoint, ":")[end])
66
+ ZMQ.connect(s2, "tcp://localhost:$(port)")
67
68
msg = Message("test request")
69
0 commit comments