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, [EMAIL PROTECTED] 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
> [EMAIL PROTECTED]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
pgp1hnwWMCNpW.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
