Update of /cvsroot/freenet/freenet/src/freenet/node/states/FCP
In directory sc8-pr-cvs1:/tmp/cvs-serv31167/src/freenet/node/states/FCP

Modified Files:
        NewHello.java 
Log Message:
6251:
Fix occasional NPE in ConnectionHandler.
Changes to the README and the warning fproxy sends when it detect Internet Explorer, 
mostly w.r.t. Opera. Contributed by an untraceable individual who wishes to remain 
nameless.
Add logOverwrite config parameter.
Make the default insert key CHK@ and the default HTL 25.
Tyop fixes in comments.
Logging, toString(), indenting.


Index: NewHello.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/FCP/NewHello.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -r1.5 -r1.6
--- NewHello.java       4 Oct 2003 01:17:04 -0000       1.5
+++ NewHello.java       16 Oct 2003 01:04:01 -0000      1.6
@@ -5,6 +5,7 @@
 import freenet.message.client.*;
 import freenet.node.ds.FSDataStore;
 import freenet.support.Fields;
+import freenet.support.Logger;
 
 public class NewHello extends NewClientRequest {
 
@@ -19,6 +20,10 @@
     public State received(Node n, MessageObject mo) throws BadStateException {
         if (!(mo instanceof ClientHello))
             throw new BadStateException("expecting ClientHello");
+       boolean logDEBUG = Core.logger.shouldLog(Logger.DEBUG);
+       if(logDEBUG)
+           Core.logger.log(this, "Running ClientHello: "+mo+" on "+this,
+                           Logger.DEBUG);
         FieldSet fs = new FieldSet();
         fs.add("Node", Version.getVersionString());
         fs.add("Protocol", "1.2");
@@ -27,6 +32,8 @@
             fs.add("HighestSeenBuild", ""+Version.highestSeenBuild);
        }
         sendMessage(new NodeHello(id, fs));
+       if(logDEBUG) Core.logger.log(this, "Finished running ClientHello "+
+                                    mo+" on "+this, Logger.DEBUG);
         return null;
     }
 }

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to