mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Increased connection timeout to 2 minutes, more logging.
This commit is contained in:
@@ -27,7 +27,7 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
|
|||||||
256000, 128000, 115200, 57600, 38400, 19200, 14400, 9600, 4800, 1200
|
256000, 128000, 115200, 57600, 38400, 19200, 14400, 9600, 4800, 1200
|
||||||
};
|
};
|
||||||
private static final int OK_TIMEOUT = 5 * 1000; // Milliseconds
|
private static final int OK_TIMEOUT = 5 * 1000; // Milliseconds
|
||||||
private static final int CONNECT_TIMEOUT = 60 * 1000; // Milliseconds
|
private static final int CONNECT_TIMEOUT = 2 * 60 * 1000; // Milliseconds
|
||||||
|
|
||||||
private final Executor executor;
|
private final Executor executor;
|
||||||
private final Callback callback;
|
private final Callback callback;
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ class Receiver implements ReadHandler {
|
|||||||
sender.handleAck(b);
|
sender.handleAck(b);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if(LOG.isLoggable(INFO)) LOG.info("Ignoring unknown frame type");
|
if(LOG.isLoggable(INFO))
|
||||||
|
LOG.info("Ignoring unknown frame type: " + b[0]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user