testbench: support environments with limit on nbr of open sockets