mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
If an exception occurs during fast retransmission, propagate it.
This commit is contained in:
@@ -43,7 +43,7 @@ class Sender {
|
|||||||
writeHandler.handleWrite(a.getBuffer());
|
writeHandler.handleWrite(a.getBuffer());
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleAck(byte[] b) {
|
void handleAck(byte[] b) throws IOException {
|
||||||
if(b.length != Ack.LENGTH) {
|
if(b.length != Ack.LENGTH) {
|
||||||
// Ignore ack frame with invalid length
|
// Ignore ack frame with invalid length
|
||||||
return;
|
return;
|
||||||
@@ -95,15 +95,8 @@ class Sender {
|
|||||||
if(windowSize > oldWindowSize || foundIndex != -1) notifyAll();
|
if(windowSize > oldWindowSize || foundIndex != -1) notifyAll();
|
||||||
}
|
}
|
||||||
// Fast retransmission
|
// Fast retransmission
|
||||||
if(fastRetransmit != null) {
|
if(fastRetransmit != null)
|
||||||
Data d = fastRetransmit.data;
|
writeHandler.handleWrite(fastRetransmit.data.getBuffer());
|
||||||
try {
|
|
||||||
writeHandler.handleWrite(d.getBuffer());
|
|
||||||
} catch(IOException e) {
|
|
||||||
// FIXME: Do something more meaningful
|
|
||||||
if(LOG.isLoggable(WARNING)) LOG.log(WARNING, e.toString(), e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void tick() {
|
void tick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user