Well the packet isn't being received. What do you think is the best way
forward? One option is to track when we last received a valid packet
rather than a message, and use that in the case of non-routable nodes?

On Wed, Jul 26, 2006 at 01:15:17AM +0200, Florent Daignière (NextGen$) wrote:
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2006-07-25 20:45:50]:
> 
> > Author: toad
> > Date: 2006-07-25 20:45:49 +0000 (Tue, 25 Jul 2006)
> > New Revision: 9763
> > 
> > Modified:
> >    trunk/freenet/src/freenet/node/PacketSender.java
> > Log:
> > don't disconnect from idle, incompatible nodes
> > 
> > Modified: trunk/freenet/src/freenet/node/PacketSender.java
> > ===================================================================
> > --- trunk/freenet/src/freenet/node/PacketSender.java        2006-07-25 
> > 20:39:02 UTC (rev 9762)
> > +++ trunk/freenet/src/freenet/node/PacketSender.java        2006-07-25 
> > 20:45:49 UTC (rev 9763)
> > @@ -162,7 +162,7 @@
> >                     }
> >                     
> >                  // Is the node dead?
> > -                if(now - pn.lastReceivedPacketTime() > 
> > pn.maxTimeBetweenReceivedPackets()) {
> > +                if(pn.isRoutable() && now - pn.lastReceivedPacketTime() > 
> > pn.maxTimeBetweenReceivedPackets()) {
> >                     Logger.normal(this, "Disconnecting from "+pn+" - 
> > haven't received packets recently");
> >                      pn.disconnected();
> >                      continue;
> > 
> 
> When are we disconnecting from disconnected non-routable nodes then ?
> isn't LinkPingPong sending a packet each time ?
> 
> NextGen$



> _______________________________________________
> Devl mailing list
> [email protected]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to