ITADN

precompile fails with Julia < 1.6

#236Closedminrk 创建于 2024-05-28
M
minrkcommented
The use of `bind('tcp://localhost:*')` fails precompile on zmq < 4.3.5, because binding to hostnames is not supported in zmq 4.3.2, the latest version packaged by ZeroMQ_jll for Julia < 1.6. Using 127.0.0.1 will _almost_ always work. I think `*` / `0.0.0.0` will always work, but binding to public interfaces may not be desirable. You could also lookup localhost's ip with `Sockets.getaddrinfo("localhost")`, which is ultimately what the current code is doing, but the getaddrinfo is [in libzmq itself](https://github.com/zeromq/libzmq/blob/c2fae81460d9d39a896da7b3f72484d23a172fa7/src/ip_resolver.cpp#L721C12-L721C23) in the supported versions.
关闭于 2024-05-28 4 条评论