Matt Joiner
|
c4a6f66a95
|
Lock now required around missinggo.Event variables
|
2016-05-09 16:44:06 +10:00 |
Matt Joiner
|
a45a09b877
|
Rework setting of info bytes
|
2016-05-09 15:47:39 +10:00 |
Matt Joiner
|
0aabd37e6e
|
Add some comments to file storage
|
2016-05-09 15:46:48 +10:00 |
Matt Joiner
|
cee49435e0
|
Add Client.AddTorrentInfoHash, and some other tidying
Remove Client.bannedTorrents, which shouldn't have been in use anymore. Also fix Client.newTorrent.
|
2016-05-09 14:37:29 +10:00 |
Matt Joiner
|
b8e1edef27
|
Remove the vestiges of the expose tracker Client interface
|
2016-05-09 12:20:35 +10:00 |
Matt Joiner
|
b9a7cbfa14
|
dht: Fix race contacting starting addrs in Announce
|
2016-05-07 19:02:30 +10:00 |
Matt Joiner
|
1d87653738
|
Fix dht.Server.Announce never stopping if the starting addresses can't be contacted
|
2016-05-07 18:58:43 +10:00 |
Matt Joiner
|
69643860ea
|
Move some behaviour into Client.newConnection
|
2016-05-07 18:57:38 +10:00 |
Matt Joiner
|
0fd73396fd
|
missinggo.Event changed, connection.writeOptimizer changes
|
2016-05-07 18:56:44 +10:00 |
Matt Joiner
|
d5d3d9f623
|
tracker: Skip DNS error in UDP test
|
2016-05-07 18:17:40 +10:00 |
Matt Joiner
|
9c36d36654
|
cmd/torrent-infohash update for API changes
|
2016-05-06 15:09:59 +10:00 |
Matt Joiner
|
b5812bb0b7
|
Remove the last of the "config dir" stuff
This just conflates the Client. It should be done orthogonally.
|
2016-05-05 23:05:28 +10:00 |
Matt Joiner
|
2d160b0419
|
metainfo.InfoEx.Hash becomes a function, UpdateBytes is added, and Bytes used in marshalling
Fixes #80.
|
2016-05-05 22:40:38 +10:00 |
Matt Joiner
|
533f01147d
|
metainfo: Add HashBytes
|
2016-05-03 21:34:20 +10:00 |
Matt Joiner
|
e0451b0728
|
metainfo: Improve doc
|
2016-05-03 21:34:11 +10:00 |
Matt Joiner
|
bed302faa8
|
metainfo.Info.BuildFromFilePath contained unnecessary log, and didn't handle error correctly
|
2016-05-03 20:25:16 +10:00 |
Matt Joiner
|
3c612cbfc8
|
cmd/torrent-create: Tidy up flags and remove redundant function calls
Issue #80
|
2016-05-03 16:49:30 +10:00 |
Matt Joiner
|
f6b83130c9
|
Move a bunch of Torrent methods from client.go
|
2016-05-03 16:47:11 +10:00 |
Matt Joiner
|
d47ba4a08f
|
Rework handling of metadata data messages
There are some dubious logs probably resulting from poor ordering of some code for handling incoming metadata data messages.
|
2016-05-03 14:59:54 +10:00 |
Matt Joiner
|
726e763c46
|
Doc and logging improvements
|
2016-05-03 14:58:26 +10:00 |
Matt Joiner
|
8ae88151a8
|
cmd/torrent-metainfo-pprint: Add -files flag, and expose NumFiles and TotalLength in output
|
2016-05-03 12:51:31 +10:00 |
Matt Joiner
|
bdf36c09cf
|
Doc metainfo.Info.BuildFromFilePath
|
2016-05-03 12:51:03 +10:00 |
Matt Joiner
|
1936054615
|
cmd/torrent-metainfo-pprint: Also print InfoHash
|
2016-05-02 19:14:49 +10:00 |
Matt Joiner
|
7044161faa
|
Add metainfo.Hash.FromHexString
|
2016-05-02 11:21:03 +10:00 |
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 |