When using the bisocket transport the creation of non control tcp connections is done in a retry to loop to prevent failures which may happen when trying to create connections in Windows (known windows bug).
However creation of the tcp connection to be used for the bisocket control connection does not appear to be protected in the same way. This can cause JBM intermittent test failures when running on Windows.
I've added a configuration parameter, org.jboss.remoting.transport.bisocket.Bisocket.MAX_RETRIES (actual value "maxRetries") that is used by BisocketClientInvoker to govern the number of attempts to get the secondary locator, and in BisocketServerInvoker to govern the number of attempts to create both ordinary and control sockets. The default value is 10.