[freenet-dev] [freenet-cvs] r16987 - trunk/freenet/src/freenet/io/xfer

Matthew Toseland toad at amphibian.dyndns.org
Fri Jan 11 22:06:24 UTC 2008


On Wednesday 09 January 2008 22:10, robert at freenetproject.org wrote:
> Author: robert
> Date: 2008-01-09 22:10:36 +0000 (Wed, 09 Jan 2008)
> New Revision: 16987
> 
> Modified:
>    trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
> Log:
> don't assume everything has been transmitted when the transmitter oversleeps
> - should get rid of "haven't heard from receiver in 1m55s." message
> - the transmitter still oversleeps (2 minutes?!), and is not woken up by 
notifyAll() because it is in the throttle function: delay()

Why does the below help?
> 
> 
> Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
> ===================================================================
> --- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java	2008-01-09 
18:33:46 UTC (rev 16986)
> +++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java	2008-01-09 
22:10:36 UTC (rev 16987)
> @@ -192,6 +192,7 @@
>  					public void packetReceived(int packetNo) {
>  						synchronized(_senderThread) {
>  							_unsent.addLast(new Integer(packetNo));
> +							timeAllSent = -1;
>  							_sentPackets.setBit(packetNo, false);
>  							_senderThread.notifyAll();
>  						}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20080111/f2185e03/attachment.pgp 


More information about the Devl mailing list