Isn't sendSync() a longer timeout than the waitFor()? We could change that 
though, pass in a timeout..?

On Friday 28 December 2007 16:51, robert at freenetproject.org wrote:
> Author: robert
> Date: 2007-12-28 16:51:18 +0000 (Fri, 28 Dec 2007)
> New Revision: 16826
> 
> Modified:
>    trunk/freenet/src/freenet/node/InsertHandler.java
> Log:
> less timeouts which are really disconnects
> 
> 
> Modified: trunk/freenet/src/freenet/node/InsertHandler.java
> ===================================================================
> --- trunk/freenet/src/freenet/node/InsertHandler.java 2007-12-28 16:50:28 
UTC (rev 16825)
> +++ trunk/freenet/src/freenet/node/InsertHandler.java 2007-12-28 16:51:18 
UTC (rev 16826)
> @@ -91,7 +91,8 @@
>          // Send Accepted
>          Message accepted = DMT.createFNPAccepted(uid);
>          try {
> -                     source.sendAsync(accepted, null, 0, this);
> +                     //Using sendSync here will help the next message filter 
> not timeout... 
wait here or at the message filter.
> +                     source.sendSync(accepted, this);
>               } catch (NotConnectedException e1) {
>                       if(logMINOR) Logger.minor(this, "Lost connection to 
> source");
>                       return;
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080103/2f615c5d/attachment.pgp>

Reply via email to