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
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
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
Matt Joiner
5eb6b5286e
Rare panic: a piece is requested that shouldn't have been
2015-05-09 11:52:52 +10:00
Matt Joiner
e71ba5210e
Merge pull request #13 from milosgajdos83/metainfo-trackerless
...
Added support for trackerless metainfo files
2015-05-05 15:11:10 +10:00
Milos Gajdos
dfd654bcde
Adding trackerless.torrent metainfo file to test suite
2015-05-03 16:37:48 +01:00
Milos Gajdos
f6d1652360
Added support for trackerless metainfo files
...
Based on the official spec
(http://www.bittorrent.org/beps/bep_0005.html ) trackerless metainfo
files do not contain announce key. Instead nodes key has to be
specified. This PR adds support for nodes key into metainfo package. It
also contains a test metainfo file.
2015-05-03 11:30:27 +01:00
Matt Joiner
d3c5a4f92c
bencode: gofmt
2015-04-30 00:36:25 +10:00
Matt Joiner
c5208569ca
Apply sortimports
2015-04-30 00:31:34 +10:00
Matt Joiner
ca74d8ed33
Made Torrent.GotInfo a function, to avoid use of zero-initialized channel
2015-04-30 00:30:19 +10:00
Matt Joiner
0ec0302d1c
Publicly expose Torrent.GotInfo
2015-04-28 15:24:17 +10:00
Matt Joiner
0cf7dd7faf
Remove obsolete libtorgo README
2015-04-27 15:04:27 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
ce00bd0791
Merge remote-tracking branch 'libtorgo/master' into HEAD
2015-04-27 14:36:35 +10:00
Matt Joiner
8f4d0f3577
fs: Improve test error handling if FUSE isn't available
2015-04-27 14:06:00 +10:00
Matt Joiner
cc6a52fee0
Remove all the old intermediate config fields from Client
2015-04-27 14:05:27 +10:00
Matt Joiner
1ba2f18750
Add the --disable-tcp flag to the client options
2015-04-20 17:35:21 +10:00
Matt Joiner
b37f6d6f96
Add the option to disable encryption
2015-04-20 17:30:22 +10:00
Matt Joiner
28b299e7c8
Rework the Torrent Reader interface, to allow reader options, and add "responsive" as one such option
...
Had several weeks of testing. Removes a lot of the "helper" reading methods, but this was necessary to allow per-Torrent reading options.
2015-04-14 23:59:41 +10:00
Matt Joiner
ade6087b2f
Move torrentOffsetRequest and torrentRequestOffset, fixing a bug in former, and test it
2015-04-08 02:20:01 +10:00
Matt Joiner
533c034747
import pp peer_protocol in misc.go
2015-04-08 02:17:15 +10:00
Matt Joiner
d48b755776
cmd/torrent-magnet: Error if arguments are given
...
Too easy to make this mistake, and then it hangs.
2015-04-08 02:15:25 +10:00
Matt Joiner
6c48d59adb
Move piece into its own file
2015-04-08 02:14:35 +10:00
Matt Joiner
814aa311c8
fs: Improve test logging
2015-04-08 01:43:50 +10:00