kafka-junit icon indicating copy to clipboard operation
kafka-junit copied to clipboard

Ensure getUniqueEphemeralPorts returns only free ports

Open julianladisch opened this issue 2 months ago • 0 comments

getUniqueEphemeralPorts doesn't check whether the ports are free or in use.

To avoid a port that is in use call new ServerSocket(0) that finds a random ephemeral port that is free.

Fixes #98

julianladisch avatar Dec 17 '24 18:12 julianladisch