Matt Joiner
|
5882a3b32e
|
Remove metainfo.Builder, and issue #35 test for it
Builder is poorly designed, and issue #35 is poorly written. I don't want to support either of them.
|
2016-04-30 12:00:12 +10:00 |
Matt Joiner
|
0cd8b4fd3b
|
Allow encoding private=0 in metainfo, which fixes test for not using InfoEx.Bytes when marshalling as a shortcut
|
2016-04-30 11:59:10 +10:00 |
Matt Joiner
|
62c751ff7f
|
Also fix "context" in reader_test.go
|
2016-04-30 11:46:45 +10:00 |
Matt Joiner
|
d2fa0e814d
|
Ugh, "context" isn't in go 1.6
|
2016-04-30 11:33:07 +10:00 |
Matt Joiner
|
f62ff2f540
|
Add Reader.ReadContext
Allows cancelling reads etc. Torrents that get stuck can result in Reads that won't return until the torrent is dropped.
|
2016-04-30 11:08:29 +10:00 |
Matt Joiner
|
28c9ec2bd1
|
Some changes to metainfo.InfoEx and testutil
|
2016-04-30 11:07:29 +10:00 |
Matt Joiner
|
63c5ca1f01
|
Fix crash when peers have sent undersized bitfields and we get the torrent info
|
2016-04-30 04:08:02 +10:00 |
Matt Joiner
|
1fab765329
|
Change the behaviour of Torrent.Length with when info isn't available
|
2016-04-20 20:10:39 +10:00 |
Matt Joiner
|
61acdf6184
|
Improve some docs
|
2016-04-20 20:10:10 +10:00 |
Matt Joiner
|
93f914a6d3
|
Fix receiver pointeriness for some File methods
|
2016-04-19 17:20:31 +10:00 |
Matt Joiner
|
2db45b1198
|
cmd/torrent: Add -addr flag back in
|
2016-04-19 17:20:14 +10:00 |
Matt Joiner
|
eac0d6f8da
|
Merge pull request #79 from shoenig/normalize
refactor struct identifiers to follow conventional go names
|
2016-04-19 17:10:42 +10:00 |
Seth Hoenig
|
9f4bf70e17
|
refactor struct identifiers to follow conventional go names
|
2016-04-18 23:11:11 -05:00 |
Matt Joiner
|
dcec4f3dce
|
Improve doc on Torrent.Drop
https://github.com/anacrolix/torrent/issues/73
|
2016-04-18 21:52:30 +10:00 |
Matt Joiner
|
2dcbe31304
|
cmd/torrent: Forget trying to expose the entire Client config struct to the command-line
|
2016-04-18 21:30:28 +10:00 |
Matt Joiner
|
9bebc043ea
|
cmd/torrent: Remove redundant _ "net/http/pprof" import
It's done by envpprof instead
|
2016-04-18 21:29:37 +10:00 |
Matt Joiner
|
86e34977de
|
piece-file storage: Use the receiver-local FileStore field
Because aliens, mainly.
|
2016-04-14 17:28:30 +10:00 |
Matt Joiner
|
da4d40ed7e
|
Merge all our global consts and vars into global.go
For easier referral to other parties.
|
2016-04-14 17:19:07 +10:00 |
Matt Joiner
|
48871324f4
|
Comments and logs around bad metadata size
|
2016-04-07 19:13:51 +10:00 |
Matt Joiner
|
49a3c87a53
|
Fix possible deadlock
|
2016-04-04 20:39:57 +10:00 |
Matt Joiner
|
deea9d2192
|
Fix Config.IPBlocklist type
|
2016-04-04 16:23:30 +10:00 |
Matt Joiner
|
792feae8f9
|
iplist: Add helper to mmap in a packed blocklist
|
2016-04-04 16:23:05 +10:00 |
Matt Joiner
|
f83771b660
|
Apply ineffassign linter
|
2016-04-04 15:39:26 +10:00 |
Matt Joiner
|
82ee860e8d
|
Apply unconvert linter
|
2016-04-04 15:28:25 +10:00 |
Matt Joiner
|
fda1cc3f7b
|
Remove more deadcode
|
2016-04-04 15:23:05 +10:00 |
Matt Joiner
|
1566e2afdc
|
Remove deadcode
|
2016-04-04 15:18:51 +10:00 |
Matt Joiner
|
bd7981dc19
|
Remove unused orderedList
|
2016-04-04 15:10:39 +10:00 |
Matt Joiner
|
8f164ae956
|
Remove some of the magic ConfigDir stuff
This might become a helper. Torrent file cache still remains.
|
2016-04-04 14:04:48 +10:00 |
Matt Joiner
|
fa511154e4
|
Move Magnet and friends into metainfo package
|
2016-04-04 13:48:39 +10:00 |
Matt Joiner
|
6aacfe5589
|
Merge pull request #72 from shoenig/magnetize
convenience function for creating magnets
|
2016-04-04 13:20:15 +10:00 |
Matt Joiner
|
b80bb6393a
|
Use metainfo.Hash for piece and info hashes
|
2016-04-04 13:01:31 +10:00 |
Seth Hoenig
|
890658ef93
|
convenience function for creating magnets
|
2016-04-03 10:05:17 -05:00 |
Matt Joiner
|
00f33c848e
|
Adding a torrent without info after waitAccept has blocked wouldn't trigger further accepts immediately
|
2016-04-03 22:06:25 +10:00 |
Matt Joiner
|
22ad654420
|
Fix deadlocks in WriteStatus due to incomplete renaming
|
2016-04-03 20:54:14 +10:00 |
Matt Joiner
|
d3a1c79c79
|
Merge Torrent and torrent types
|
2016-04-03 18:40:43 +10:00 |
Matt Joiner
|
501ae0c98c
|
Comments
|
2016-04-03 16:52:52 +10:00 |
Matt Joiner
|
08830b97a1
|
Make everything on type torrent private
|
2016-04-03 16:50:53 +10:00 |
Matt Joiner
|
e3a7433154
|
piece file storage: Don't write to completed pieces
|
2016-04-03 16:37:50 +10:00 |
Matt Joiner
|
c469d4a837
|
cmd/torrent-metainfo-pprint: Switch to tagflag for argument parsing
|
2016-04-03 16:37:17 +10:00 |
Matt Joiner
|
bc8fb2a165
|
If we fail to write to a piece, check its completion state
|
2016-04-03 16:36:57 +10:00 |
Matt Joiner
|
44f5bb73c5
|
Improve log messages
|
2016-04-03 16:36:24 +10:00 |
Matt Joiner
|
6a8bbc4e14
|
Suppress piece read errors when data is obtained
|
2016-04-03 16:35:28 +10:00 |
Matt Joiner
|
f19e8b32aa
|
storage: Don't read bad completed piece files
|
2016-04-03 16:33:31 +10:00 |
Matt Joiner
|
7638d678a8
|
storage: Fix io.EOF on short piece files
|
2016-04-02 16:57:22 +11:00 |
Matt Joiner
|
446e11b1fc
|
Missing error checks in test
|
2016-03-30 19:16:40 +11:00 |
Matt Joiner
|
c0e060de63
|
Suppress logging noise in tests
|
2016-03-30 19:12:57 +11:00 |
Matt Joiner
|
7790e72832
|
Move storage.FileStore interface to missinggo
|
2016-03-30 19:12:33 +11:00 |
Matt Joiner
|
5856b91af0
|
Fix missinggo import
|
2016-03-30 19:11:55 +11:00 |
Matt Joiner
|
baa8c1aed2
|
Few fixes for downstream projects
|
2016-03-29 12:13:03 +11:00 |
Matt Joiner
|
233f51d7db
|
Remove all the old data store packages
|
2016-03-29 11:14:54 +11:00 |