Permalink
Commits on Apr 12, 2009
  1. Close pending connection attempts when the torrentmanager is stopped

    alanmcgovern committed Apr 12, 2009
    svn path=/branches/bitsharp-0.70/; revision=131538
Commits on Apr 5, 2009
  1. Bump version to 0.72

    alanmcgovern committed Apr 5, 2009
    svn path=/branches/bitsharp-0.70/; revision=131080
Commits on Mar 31, 2009
  1. The new piece picking pipeline is expensive for two very common cases:

    alanmcgovern committed Mar 31, 2009
    1) We're interested in a peer which has not unchoked us.
    2) We're continuing an existing request.
    
    Add additional logic to reduce/remove the cost associated with these (very common) cases.
    
    svn path=/branches/bitsharp-0.70/; revision=130715
Commits on Mar 29, 2009
  1. Add explicit cast to allow older monos to compile the code

    alanmcgovern committed Mar 29, 2009
    svn path=/branches/bitsharp-0.70/; revision=130498
  2. Add the autofoo for disabling DHT at build time

    alanmcgovern committed Mar 29, 2009
    svn path=/branches/bitsharp-0.70/; revision=130496
  3. * SampleClient/main.cs:

    alanmcgovern committed Mar 29, 2009
    * MonoTorrent.Tests/Dht/TokenTest.cs:
    * MonoTorrent.Tests/Dht/NodeTests.cs:
    * MonoTorrent.Tests/Dht/TaskTests.cs:
    * MonoTorrent.Tests/Dht/TestHelper.cs:
    * MonoTorrent.Tests/Dht/NodeIdTests.cs:
    * MonoTorrent/MonoTorrent.Dht/State.cs:
    * MonoTorrent.Tests/Dht/AssemblyInfo.cs:
    * MonoTorrent.Tests/Dht/MessageTests.cs:
    * MonoTorrent.Tests/Dht/TestListener.cs:
    * MonoTorrent/MonoTorrent.Dht/Message.cs:
    * MonoTorrent/MonoTorrent.Dht/DhtEngine.cs:
    * MonoTorrent/MonoTorrent.Dht/Nodes/Node.cs:
    * MonoTorrent/MonoTorrent.Dht/BigInteger.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/Task.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/ITask.cs:
    * MonoTorrent/MonoTorrent.Dht/MessageLoop.cs:
    * MonoTorrent.Tests/Dht/RoutingTableTests.cs:
    * MonoTorrent/MonoTorrent.Dht/Nodes/NodeId.cs:
    * MonoTorrent/MonoTorrent.Dht/TransactionId.cs:
    * MonoTorrent.Tests/Dht/MessageHandlingTests.cs:
    * MonoTorrent/MonoTorrent.Dht/MessageFactory.cs:
    * MonoTorrent/MonoTorrent.Client/ClientEngine.cs:
    * MonoTorrent/MonoTorrent.Dht/Nodes/NodeState.cs:
    * MonoTorrent/MonoTorrent.Dht/MessageException.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/GetPeersTask.cs:
    * MonoTorrent/MonoTorrent.Dht/Nodes/TokenManager.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/AnnounceTask.cs:
    * MonoTorrent/MonoTorrent.Dht/RoutingTable/Bucket.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/InitialiseTask.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/SendMessageTask.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/ReplaceNodeTask.cs:
    * MonoTorrent/MonoTorrent.Dht/Listeners/DhtListener.cs:
    * MonoTorrent/MonoTorrent.Dht/Listeners/UdpListener.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Queries/Ping.cs:
    * MonoTorrent/MonoTorrent.Dht/Tasks/RefreshBucketTask.cs:
    * MonoTorrent/MonoTorrent.Dht/RoutingTable/RoutingTable.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Queries/FindNode.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Queries/GetPeers.cs:
    * MonoTorrent/MonoTorrent.Client/Managers/TorrentManager.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Errors/ErrorMessage.cs:
    * MonoTorrent/MonoTorrent.Dht/EventArgs/NodeAddedEventArgs.cs:
    * MonoTorrent/MonoTorrent.Dht/EventArgs/NodeFoundEventArgs.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Queries/QueryMessage.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Queries/AnnouncePeer.cs:
    * MonoTorrent/MonoTorrent.Dht/EventArgs/PeersFoundEventArgs.cs:
    * MonoTorrent/MonoTorrent.Dht/EventArgs/SendMessageEventArgs.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Responses/PingResponse.cs:
    * MonoTorrent/MonoTorrent.Dht/EventArgs/TaskCompleteEventArgs.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Responses/ResponseMessage.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Responses/GetPeersResponse.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Responses/FindNodeResponse.cs:
    * MonoTorrent/MonoTorrent.Dht/Messages/Responses/AnnouncePeerResponse.cs:
      Backport the IFDEFs to disable DHT at compile time.
    
    svn path=/branches/bitsharp-0.70/; revision=130494
Commits on Mar 22, 2009
  1. Fix issue with global download limit being ignored.

    alanmcgovern committed Mar 22, 2009
    svn path=/branches/bitsharp-0.70/; revision=130007
Commits on Mar 17, 2009
  1. Add public methods to allow the user to ensure data has been flushed …

    alanmcgovern committed Mar 17, 2009
    …to the disk.
    
    svn path=/branches/bitsharp-0.70/; revision=129578
  2. Ensure the data is flushed to disk when the engine calls flush.

    alanmcgovern committed Mar 17, 2009
    svn path=/branches/bitsharp-0.70/; revision=129577
Commits on Mar 15, 2009
  1. Implement the full fix the start/end index calculation for zero-lengt…

    alanmcgovern committed Mar 15, 2009
    …h files. Added a bunch more tests to ensure this behaviour is correct.
    
    svn path=/branches/bitsharp-0.70/; revision=129379
  2. Ensure that a file with zero length that exists at the the boundry be…

    alanmcgovern committed Mar 15, 2009
    …tween pieces is handled correctly.
    
    svn path=/branches/bitsharp-0.70/; revision=129369
Commits on Mar 14, 2009
  1. Fixes an issue where if multiple torrents had files with the same pat…

    alanmcgovern committed Mar 14, 2009
    …h data would be read/written to the wrong file.
    
    svn path=/branches/bitsharp-0.70/; revision=129361
Commits on Mar 11, 2009
  1. Add error handling around the dht main loop to prevent malformed mess…

    alanmcgovern committed Mar 11, 2009
    …ages crashing the library.
    
    svn path=/branches/bitsharp-0.70/; revision=129099
Commits on Feb 4, 2009
  1. Fix issue zeroing the unused bits when the bitfield was an exact mult…

    alanmcgovern committed Feb 4, 2009
    …iple of 32 bits.
    
    svn path=/branches/bitsharp-0.70/; revision=125752
Commits on Feb 3, 2009
  1. Remove optimisation which resulted in no seeds ever being requested f…

    alanmcgovern committed Feb 3, 2009
    …rom the tracker when a torrent is seeding
    
    svn path=/branches/bitsharp-0.70/; revision=125602
Commits on Feb 1, 2009
  1. commit the generated assemblyinfo.cs

    alanmcgovern committed Feb 1, 2009
    svn path=/branches/bitsharp-0.70/; revision=125263
  2. Ensure that the peerid will always be of length 20

    alanmcgovern committed Feb 1, 2009
    svn path=/branches/bitsharp-0.70/; revision=125262
  3. Calculate the start/end indices of the files correctly.

    alanmcgovern committed Feb 1, 2009
    svn path=/branches/bitsharp-0.70/; revision=125253
  4. Default to using the ipaddress/port, not just the ipaddress when comp…

    alanmcgovern committed Feb 1, 2009
    …aring peers in the tracker
    
    svn path=/branches/bitsharp-0.70/; revision=125252
  5. The picker wasn't being reset when PieceManager.Reset was called.

    alanmcgovern committed Feb 1, 2009
    svn path=/branches/bitsharp-0.70/; revision=125249
Commits on Jan 21, 2009
  1. Should use 0.70 to be consistent with previous versioning

    alanmcgovern committed Jan 21, 2009
    svn path=/branches/bitsharp-0.70/; revision=123975
Commits on Jan 17, 2009
  1. Fix bug whereby Fast/Suggested pieces could be requested multiple times.

    alanmcgovern committed Jan 17, 2009
    svn path=/trunk/bitsharp/; revision=123695
  2. Use the correct default value

    alanmcgovern committed Jan 17, 2009
    svn path=/trunk/bitsharp/; revision=123694
  3. If the remote handshake couldn't be received, ensure the connection i…

    alanmcgovern committed Jan 17, 2009
    …s correctly disposed.
    
    svn path=/trunk/bitsharp/; revision=123693
  4. * src/MonoTorrent/Makefile.am:

    alanmcgovern committed Jan 17, 2009
    * src/MonoTorrent/MonoTorrent.csproj:
    * src/MonoTorrent/MonoTorrent.Common/TimeoutDispatcher.cs: Add
      TimeoutDispatcher locally and update build files
    
    svn path=/trunk/bitsharp/; revision=123689
  5. * src/MonoTorrent/MonoTorrent.Client/Managers/PieceManager.cs: Add cast

    alanmcgovern committed Jan 17, 2009
      to allow older versions of mono to compile.
    
    * src/MonoTorrent/MonoTorrent.Client/PiecePicking/EndGamePicker.cs:
      Older versions of mono can't compile this construct properly, so
      rewrite to have static methods instead of static anon delegates.
    
    svn path=/trunk/bitsharp/; revision=123687
  6. Complete the implementation of RangeCollection. Contains and Remove n…

    alanmcgovern committed Jan 17, 2009
    …ow work.
    
    svn path=/trunk/bitsharp/; revision=123686
Commits on Jan 14, 2009
  1. Should be using DiskManager.IOLoop, not ClientEngine.MainLoop - whoops.

    alanmcgovern committed Jan 14, 2009
    svn path=/trunk/bitsharp/; revision=123404
  2. Wrote a custom RangeCollection class (with some tests) which has ~100…

    alanmcgovern committed Jan 14, 2009
    …x better performance for my usecase. Banlist loading now takes a few hundred ms instead of > 30 seconds.
    
    svn path=/trunk/bitsharp/; revision=123290
  3. Processing of reads/writes is now triggered when a read/write is queu…

    alanmcgovern committed Jan 14, 2009
    …ed as opposed to a timer timeout.
    
    svn path=/trunk/bitsharp/; revision=123287
Commits on Jan 12, 2009
  1. Comparison can be implemented using subtraction, it's a little faster.

    alanmcgovern committed Jan 12, 2009
    svn path=/trunk/bitsharp/; revision=123130
  2. Call into the MainThread less frequently as it's not necessary

    alanmcgovern committed Jan 12, 2009
    svn path=/trunk/bitsharp/; revision=123006
  3. Cosmetic - refactor finding an existing stream into its own method.

    alanmcgovern committed Jan 12, 2009
    svn path=/trunk/bitsharp/; revision=123005
Commits on Jan 10, 2009
  1. Updated makefiles

    alanmcgovern committed Jan 10, 2009
    svn path=/trunk/bitsharp/; revision=122983
  2. Fixed newline issues which were breaking the build

    alanmcgovern committed Jan 10, 2009
    svn path=/trunk/bitsharp/; revision=122982