[zeromq-dev] Can't run tests concurrently due to hardcoded port numbers

Greg Ward greg at gerg.ca
Thu Jul 24 20:27:41 CEST 2014


On 22 July 2014, Pieter Hintjens said:
> Good catch. We could definitely use ephemeral ports (libzmq supports
> that), though it would take changes to most of the test cases.

OK, I'll open a bug. I'll see about starting on a patch too.

> From
> the zmq_tcp man page:
> 
> ----
> The TCP port number may be specified by:
>        ·   A numeric value, usually above 1024 on POSIX systems.
>        ·   The wild-card *, meaning a system-assigned ephemeral port.
> When using ephemeral ports, the caller should retrieve the actual
> assigned port using the ZMQ_LAST_ENDPOINT socket option. See
> zmq_getsockopt(3) for details.
> ----

Sounds doable, but tedious. I predict I'll do 4 test cases before I
wander off into factoring out the boring part. ;-)

Thanks!

       Greg



More information about the zeromq-dev mailing list