the randomized wait interval in the SwissTiming connector killed a bunch of tests assuming faster response; withdrew the random wait;

This was a workaround for bug 171 (see comment #2). We need to wait for what I expect to be a fix coming from SwissTiming.
This commit is contained in:
Axel Uhl committed 2014-05-13 14:38:05 +02:00
1 parent 88215764a5
commit 78b65ae114
1 file changed
-2
@@ -508,8 +508,6 @@ public class SailMasterConnectorImpl extends SailMasterTransceiverImpl implement
synchronized (ensureSocketIsOpenSemaphor) {
while (!stopped && socket == null) {
try {
// TODO see bug 171, comment #2; randomized delay to make it unlikely that two requests collide at the M2S server
Thread.sleep((long) (10000 /*ms*/ * Math.random())); // wait somewhere between 0s and 10s.
logger.info("Opening socket to " + host + ":" + port + " and sending " + MessageType.OPN.name()
+ " message...");
socket = new Socket(host, port);