Update of /cvsroot/freenet/freenet/src/freenet/client
In directory sc8-pr-cvs1:/tmp/cvs-serv15081/src/freenet/client
Modified Files:
ClientMessageHandler.java
Log Message:
6237:
If we close a trailer while still sending a trailer chunk, this is an error. Report it
with a stack trace. This caused the send failed, valid key errors - this will help
track down the real source.
Execute messages on states on the selector loop thread, if the message is going to run
really fast (otherwise schedule it on the ticker anyway). Currently only used by
SendFinished.
Index: ClientMessageHandler.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/ClientMessageHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ClientMessageHandler.java 3 Jul 2003 03:33:42 -0000 1.4
+++ ClientMessageHandler.java 14 Oct 2003 00:43:14 -0000 1.5
@@ -56,8 +56,12 @@
* Message it is put in a queue and can be checked out with getNextReply.
* Non Message MessageObjects are ignored.
* @param mo The MessageObject to handle.
+ * @param onlyIfCanRunFast Must be true.
+ * @returns true.
+ * @see MessageHandler
**/
- public void handle(MessageObject mo) {
+ public boolean handle(MessageObject mo, boolean onlyIfCanRunFast) {
+ if(onlyIfCanRunFast) return false;
if (mo instanceof ClientMessageObject) {
MessageQueue mq = getQueue(mo.id());
synchronized(mq) {
@@ -67,8 +71,9 @@
} else {
Core.logger.log(this,"Got a MessageObject that I can't handle: " +
mo,Logger.NORMAL);
}
+ return true;
}
-
+
/**
* Does nothing.
*/
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs