Author: alanmc
Date: 2006-09-17 10:14:09 -0400 (Sun, 17 Sep 2006)
New Revision: 65547
Modified:
trunk/bitsharp/src/MonoTorrent.Client/Managers/TorrentManager.cs
Log:
Will only send reject request messages if *we* support FastPeers aswell
Modified: trunk/bitsharp/src/MonoTorrent.Client/Managers/TorrentManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Managers/TorrentManager.cs
2006-09-17 14:11:24 UTC (rev 65546)
+++ trunk/bitsharp/src/MonoTorrent.Client/Managers/TorrentManager.cs
2006-09-17 14:14:09 UTC (rev 65547)
@@ -536,12 +536,12 @@
Console.WriteLine("UnChoking: " +
this.uploadingTo);
}
- if (id.Peer.Connection.PiecesSent > 20) // Send 20
blocks before moving on
+ if (id.Peer.Connection.PiecesSent > 50) // Send 50
blocks before moving on
{
for (int j = 0; j <
id.Peer.Connection.QueueLength; j++)
{
msg = id.Peer.Connection.DeQueue();
- if (msg is PieceMessage &&
id.Peer.Connection.SupportsFastPeer)
+ if (msg is PieceMessage &&
id.Peer.Connection.SupportsFastPeer && ClientEngine.SupportsFastPeer)
id.Peer.Connection.EnQueue(new
RejectRequestMessage((PieceMessage)msg));
else
id.Peer.Connection.EnQueue(msg);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches