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

Modified Files:
      Tag: ngrouting
        ReceivingInsert.java SendingReply.java 
Log Message:
add some missing route terminations


Index: ReceivingInsert.java
===================================================================
RCS file: 
/cvsroot/freenet/freenet/src/freenet/node/states/request/ReceivingInsert.java,v
retrieving revision 1.17.6.4
retrieving revision 1.17.6.5
diff -u -r1.17.6.4 -r1.17.6.5
--- ReceivingInsert.java        29 Aug 2003 18:58:06 -0000      1.17.6.4
+++ ReceivingInsert.java        29 Aug 2003 23:27:39 -0000      1.17.6.5
@@ -75,6 +75,7 @@
                    Routing r = n.rt.route(searchKey, hopsToLive,
                                           length, false);
                     ft.storeData(n, r.getNextRoute(), -1, 0, null);
+                   r.terminate(false, false); // duh
                    // We are the terminal node; we cache it
                    if (origPeer != null)
                    {

Index: SendingReply.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/SendingReply.java,v
retrieving revision 1.18.6.4
retrieving revision 1.18.6.5
diff -u -r1.18.6.4 -r1.18.6.5
--- SendingReply.java   29 Aug 2003 18:58:06 -0000      1.18.6.4
+++ SendingReply.java   29 Aug 2003 23:27:39 -0000      1.18.6.5
@@ -57,9 +57,9 @@
                                           length, false);
                     ft.storeData(n, r.getNextRoute(), -1, 0,
                                 new RequestSendCallback("StoreData", n, this));
+                   r.terminate(false, false); // duhh :)
                    // We are sending from cache, no need to do pcaching
-                }
-                catch (CommunicationException e) {
+                } catch (CommunicationException e) {
                     n.logger.log(this,
                         "Failed to send back StoreData to peer " + e.peer+
                                 " for "+this, e, Logger.MINOR);

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

Reply via email to