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!)
This commit is contained in:
jrandom
2004-12-07 01:09:16 +00:00
committed by zzz
parent acfb6c4578
commit fa12dc867f
4 changed files with 13 additions and 4 deletions

View File

@ -23,7 +23,7 @@
if (helper.getActivePeers() <= 0) {
%><b><a href="config.jsp">check your NAT/firewall</a></b><br /><%
}
if (helper.getActiveProfiles() <= 4) { // 4 is the min fallback
if (helper.getActiveProfiles() <= 10) { // 10 is the min fallback
if ("true".equals(System.getProperty("net.i2p.router.web.ReseedHandler.reseedInProgress", "false"))) {
out.print(" <i>reseeding</i>");
} else {

View File

@ -160,6 +160,8 @@ public class MessageOutputStream extends OutputStream {
_log.debug("flusher time reached: left = " + timeLeft);
if (timeLeft > 0)
enqueue();
else if (_dataReceiver.writeInProcess())
enqueue(); // don't passive flush if there is a write being done (unacked outbound)
else
doFlush();
}
@ -341,6 +343,7 @@ public class MessageOutputStream extends OutputStream {
* Nonblocking write
*/
public WriteStatus writeData(byte buf[], int off, int size);
public boolean writeInProcess();
}
/** Define a way to detect the status of a write */

View File

@ -1,4 +1,10 @@
$Id: history.txt,v 1.98 2004/12/05 21:08:03 jrandom Exp $
$Id: history.txt,v 1.99 2004/12/06 00:03:58 jrandom Exp $
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!)
2004-12-06 jrandom
* Don't propogate streaming connection failures out to the SAM bridge as

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.103 $ $Date: 2004/12/05 21:08:02 $";
public final static String ID = "$Revision: 1.104 $ $Date: 2004/12/06 00:03:57 $";
public final static String VERSION = "0.4.2.2";
public final static long BUILD = 7;
public final static long BUILD = 8;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION);
System.out.println("Router ID: " + RouterVersion.ID);