I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e601cedb authored by jrandom's avatar jrandom Committed by zzz
Browse files

2004-12-06 jrandom

    * Don't do a 'passive flush' while there are already outbound messages
      unacked.
    * Show the reseed link if up to 10 peers profiles are active (thanks
      dburton!)
parent fa12dc86
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ class ConnectionDataReceiver implements MessageOutputStream.DataReceiver {
_dummyStatus = new DummyStatus();
}
public boolean writeInProcess() {
return _connection.getUnackedPacketsSent() > 0;
}
/**
* Send some data through the connection, or if there is no new data, this
* may generate a packet with a plain ACK/NACK or CLOSE, or nothing whatsoever
......
......@@ -57,6 +57,7 @@ public class MessageOutputStreamTest {
_data.write(buf, off, size);
return new DummyWriteStatus();
}
public boolean writeInProcess() { return false; }
public byte[] getData() { return _data.toByteArray(); }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment