Commit Graph

732 Commits

Author SHA1 Message Date
Matt Joiner d8cf0f1e34 Add benchmark for adding a torrent with a lot of pieces 2015-06-22 19:43:22 +10:00
Matt Joiner b2b290a589 Small tweak to readahead, and fix the tests 2015-06-16 17:14:15 +10:00
Matt Joiner ced5733c88 Improve uploading/seeding 2015-06-16 16:57:47 +10:00
Matt Joiner 764f5db512 Make readahead always at least 2 blocks. 2015-06-16 16:54:12 +10:00
Matt Joiner a6b5ac60ad Fix rare crash due to bad DHT node IDs 2015-06-08 18:16:29 +10:00
Matt Joiner d63c5e5b98 Don't try to connect again without encryption, if encryption is disabled 2015-06-08 18:16:01 +10:00
Matt Joiner 679c033271 Clarify Example_fileReader 2015-06-04 14:25:52 +10:00
Matt Joiner 5014b62e17 Reduce log noise due to uTP connection timeouts 2015-06-03 22:44:03 +10:00
Matt Joiner 005ca8124a Fix rare single-torrent stall due to obsolete ceaseNetworking call
Only occurred if you have a data backend that can drop completed pieces, and it happened that you wanted to redownload data that had been dropped after completely downloading the torrent in the past.
2015-06-03 22:43:40 +10:00
Matt Joiner 9f94ca79c1 Fix compile error in example 2015-06-03 13:48:57 +10:00
Matt Joiner 0ecd03db32 Retry Reader reads when data is unexpectedly missing 2015-06-03 13:36:27 +10:00
Matt Joiner ca27d431f4 cmd/torrent-pick: gofmt and sortimports 2015-06-03 13:31:27 +10:00
Matt Joiner 7e8ee950bc Docs and comments 2015-06-03 13:30:55 +10:00
Matt Joiner 6357294297 Merge branch 'master' of github.com:anacrolix/torrent 2015-06-03 00:18:24 +10:00
Matt Joiner af127dfd0f Add some metainfo validation 2015-06-03 00:17:58 +10:00
Matt Joiner 07ed952834 Test bad "completed" piece 2015-06-03 00:16:38 +10:00
Matt Joiner e871dfbbce torrentfs: Fix bad import 2015-06-03 00:14:55 +10:00
Matt Joiner a2df9f8b01 Miscellaneous changes 2015-06-03 00:03:43 +10:00
Matt Joiner 71f5a1882a Fix a few data races 2015-06-03 00:00:25 +10:00
Matt Joiner 9a0f830395 Upstream bazil.org/fuse changes again... 2015-06-02 23:59:25 +10:00
Matt Joiner 5de6abd6a7 Fix race to set IPBlocklist on DHT before it bootstraps and serves 2015-06-02 23:58:49 +10:00
Matt Joiner c6e2f2e15d Merge pull request #16 from scr4t/master
torrent-pick tool
2015-06-02 06:28:07 +10:00
Alexander Baranov 2982ad07ca remove obsolete spaces 2015-06-01 23:12:27 +03:00
Alexander Baranov 05d597a9f7 Only wait for io.Copy; Remove obsolete from client 2015-06-01 23:11:45 +03:00
Alexander Baranov 0b529da1d9 Remove obsolete spaces 2015-06-01 22:58:21 +03:00
Alexander Baranov 577b129df5 Use higher-level API to get file 2015-06-01 22:56:10 +03:00
Matt Joiner 665e3c72fc AccessTime helper moved to missinggo 2015-06-01 18:26:32 +10:00
Matt Joiner 5b52769523 Changes to the way piece prioritization affects the piece 2015-06-01 18:23:35 +10:00
Matt Joiner 21fb4933fc Change the way piece state is exposed to give more detail 2015-06-01 18:22:12 +10:00
Matt Joiner bc4aa06c91 Comments 2015-06-01 18:17:14 +10:00
Alexander Baranov 1bb31b979d Rename picker tool 2015-05-28 23:55:15 +03:00
Matt Joiner b34b583919 Reduce number of messages sent in one test, the OS nondeterministically fails the test sometimes otherwise 2015-05-24 21:37:14 +10:00
Matt Joiner 7f8ce59e39 Make the package example an actual example.
I can't remember who had this great suggestion.
2015-05-24 21:36:24 +10:00
Matt Joiner 83685f2a4b dht: Improve behaviour when adding new root nodes 2015-05-20 22:26:33 +10:00
Matt Joiner f42e27319f dht: Use maxNodes hint in node table size 2015-05-20 22:24:39 +10:00
Matt Joiner 9ea28a5094 go vet 2015-05-20 22:24:09 +10:00
Matt Joiner b706150607 dht: Implement the DHT security extension 2015-05-20 22:23:50 +10:00
Matt Joiner d87ae4f6a9 data/blob: Tidy error handling in WriteSectionTo 2015-05-20 22:21:20 +10:00
Matt Joiner 5b750e8dbd Expose GOPPROF for debugging torrent package 2015-05-20 22:20:11 +10:00
Matt Joiner 7f9d6eed78 Relax pedantic listen addr matching
Fixes #15.
2015-05-20 18:14:42 +10:00
Matt Joiner ca86b0248e go vet 2015-05-20 15:47:07 +10:00
Matt Joiner 085dbaa8ff Include reason for panic on different listener addresses 2015-05-20 15:45:58 +10:00
Matt Joiner df6d21cfa0 Merge pull request #14 from milosgajdos83/multifile-torrent
Multiple file metainfo mode support in cmd tools
2015-05-17 09:31:43 +10:00
Milos Gajdos 41c2773bcf Removed summary flag. Modified fileToMmap function
This commit also reverts the ugly hack in dht.go which was checking for
empty bootstrap node string.
2015-05-16 15:34:09 +01:00
Milos Gajdos e6e0b227da Multiple file metainfo mode support in cmd tools
torrent-create and torrent-verify did not work correctly when a single
file is present in metainfo torrent file. torrent-create now fails if
the path passed as an argument does not exist. I've als modified
dht.go which now handles the case when an empty string is passed in
DHT bootstrap nodes slice. Finally in span.go I've sneaked in cheekily
a change which defines a type more like idiomatic Go (I have an OCD :-))
2015-05-16 13:23:33 +01:00
Matt Joiner dfada8514e Fix panic on unexpected files in the blob store "completed" directory 2015-05-16 10:52:35 +10:00
Matt Joiner 1cf591dc3d Switch to using a slice for tracking pending chunks. Saves massive amounts of memory. 2015-05-16 10:51:48 +10:00
Matt Joiner 0863f8ba2c go vet 2015-05-15 08:41:42 +10:00
Matt Joiner 0d13293d71 Support seeding 2015-05-15 08:39:53 +10:00
Alexander Baranov b8b403f83e Basic pick-file functionality 2015-05-11 17:50:59 +03:00