mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 13:50:57 +00:00
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:
1 parent
88215764a5
commit
78b65ae114
1 file changed
-2
-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);
|
||||
|
||||
Reference in new issue
Block a user