Update of /cvsroot/freenet/freenet/src/freenet/node/states/request
In directory sc8-pr-cvs1:/tmp/cvs-serv1947/src/freenet/node/states/request
Modified Files:
Pending.java SendFinished.java
Log Message:
6172:
Change synchronization in OCM.findFreeConn to allow us to call scheduleConnOpener. Do
it if necessary (start a conn opener and take the existing conn, if we have only 1
message sending connection). Might cause other deadlocks, we shall see.
If we are not throttling, try write all jobs in WSL!
If we skip a throttled conn because we've already processed some, and we don't get
backed off for throttling, use zero selector timeout.
Put a limit (1 hour) on the IOException on write backoff in FileLoggerHook.
Logging
Index: Pending.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/Pending.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- Pending.java 4 Sep 2003 22:45:06 -0000 1.53
+++ Pending.java 5 Sep 2003 16:08:51 -0000 1.54
@@ -93,6 +93,8 @@
*/
public void lost(Node n) {
Core.diagnostics.occurrenceCounting("lostRequestState", 1);
+ Core.logger.log(this, "Lost a Pending state "+this+" !",
+ new Exception("debug"), Logger.NORMAL);
terminateRouting(false, false);
fail(n, "Request state lost due to overflow for "+this);
}
Index: SendFinished.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/SendFinished.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SendFinished.java 4 Sep 2003 22:45:06 -0000 1.2
+++ SendFinished.java 5 Sep 2003 16:08:51 -0000 1.3
@@ -57,7 +57,7 @@
finishTime = System.currentTimeMillis();
succeeded = true;
if(n.logger.shouldLog(Logger.DEBUG))
- n.logger.log(this, toString() + "succeeded",
+ n.logger.log(this, toString() + " succeeded",
Logger.DEBUG);
n.schedule(this);
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs