Matt Joiner
d77e939944
Synchronize access to storage
2017-12-01 23:09:07 +11:00
Matt Joiner
72340f6ffc
Remove racy part of test
2017-12-01 23:08:53 +11:00
Matt Joiner
b0914f2645
Improve issue #211 test name
2017-12-01 18:13:21 +11:00
Matt Joiner
4190856b6c
sortimports
2017-12-01 18:12:29 +11:00
Matt Joiner
10f7a8124a
Add test for #211
2017-12-01 18:11:20 +11:00
Matt Joiner
afa9d2ba28
Torrent.bytesLeft was taking a copy instead of pointer to Piece
2017-12-01 17:58:42 +11:00
Matt Joiner
2daa604eb2
Publish piece state changes after verifying piece
2017-12-01 14:03:05 +11:00
Matt Joiner
eed0743d4e
bencode.scanner.ReadByte returned errors when it shouldn't have
2017-11-10 23:44:24 +11:00
Matt Joiner
74c5d425fb
bencode: Handle encoding big.Ints
2017-11-08 21:34:24 +11:00
Matt Joiner
79a0e0f1fd
bencode: Tidy import block
2017-11-08 20:58:35 +11:00
Matt Joiner
8f7720edb2
Merge commit '6ab65a49a8a72dea1a28968b2ab42a85fd4566ec'
...
# Conflicts:
# config.go
2017-11-08 20:23:15 +11:00
Matt Joiner
da9cbc7cf0
metainfo: Omit empty Metainfo.InfoBytes
2017-11-08 19:57:05 +11:00
Matt Joiner
163a63f9a7
Torrent.Metainfo: Don't return incomplete metadata bytes
...
Fixes #208
2017-11-08 19:56:20 +11:00
Matt Joiner
f960ec1b65
cmd/torrent-metainfo-pprint: Just take a single metainfo to stdin
...
Move processing into its own function too.
2017-11-08 19:33:05 +11:00
Matt Joiner
3aa1e8f3ef
Add a test for behaviour after getting metadata_size and before GotInfo
...
#208
2017-11-08 19:31:10 +11:00
Matt Joiner
1b9606ae75
The "m" field in the extended handshake is not mandatory
2017-11-08 19:29:55 +11:00
Matt Joiner
2f8a2ada2e
Config.Debug isn't just for logging
2017-11-08 19:29:01 +11:00
Matt Joiner
8712cc25d0
Make Client.PeerID return [20]byte
2017-11-08 19:28:37 +11:00
Matt Joiner
b38996ae2a
Generalise use of peerExtensionBytes
2017-11-08 19:28:03 +11:00
Matt Joiner
7eb62eec0d
Move some code around
2017-11-08 15:00:18 +11:00
themihai
6ab65a49a8
feat(config): Allows the torrent client to customise the client identity and connection config
2017-11-07 20:14:13 +02:00
Matt Joiner
ff1bd84e7e
Fix #205
2017-11-08 00:34:59 +11:00
Matt Joiner
cecc70f4cc
More megacheck
2017-11-08 00:12:34 +11:00
Matt Joiner
9757f04cf8
Apply megacheck to torrent package
2017-11-07 16:11:59 +11:00
Matt Joiner
be3f32e962
Fix a lot of noisy logging and test warnings
2017-11-07 16:00:08 +11:00
Matt Joiner
62b1e1b749
Unbiased request ordering was requesting chunks the peer doesn't have
2017-11-06 14:53:00 +11:00
Matt Joiner
82093937d5
Ignore expected error
2017-11-06 14:01:07 +11:00
Matt Joiner
e888e6eb85
Add a link to Trickl
2017-11-06 13:42:46 +11:00
Matt Joiner
f060f0cb02
Comment on bencode.Decoder.Offset
2017-11-05 15:45:30 +11:00
Matt Joiner
edf2495b1f
Expose bencode.Decoder.Offset
2017-11-05 15:42:37 +11:00
Matt Joiner
2c6b842bbf
Remove noisy log message
2017-11-05 15:39:36 +11:00
Matt Joiner
fce1fe1661
bencode: Implement unbuffered scanner used by NewDecoder
...
Minimizes unused reads into the input Reader stream
2017-11-05 15:39:36 +11:00
Matt Joiner
be33fc4476
Kick connections requesting pieces we don't have
...
This was removed at some point, and made the requests received for missing pieces expvar unused.
2017-11-05 15:39:36 +11:00
Matt Joiner
361c8654c7
Add some TODOs
2017-11-05 15:39:35 +11:00
Samuel
3e74396c66
Aggressive Upload ( #203 )
...
* Aggressive Upload Config
* Aggressive Upload
* Flip config option.
* Flip Aggressive Upload Config Option
2017-11-05 14:04:33 +11:00
Matt Joiner
f12058fc74
Add missing whitespace
2017-11-04 17:08:02 +11:00
Matt Joiner
9bf50493c3
mse: Move sliceIter into test file
2017-11-04 17:07:42 +11:00
Matt Joiner
dd1bc6b837
Improve comment on Config.UploadRateLimiter
2017-11-04 17:07:18 +11:00
Matt Joiner
426c6fec65
Improve upload rate limit burst size panic message
...
Should help with #202 .
2017-11-04 16:58:38 +11:00
Matt Joiner
53ee52e26a
Fix copypasta PR ಠ_ಠ
2017-10-29 12:49:58 +11:00
Matt Joiner
13268e3765
Merge pull request #201 from dz0ny/fix/http_client
...
Provide trackers specific http client
2017-10-29 12:38:31 +11:00
dz0ny
caa58d0f69
Provide trackers specific http client
...
Mainly follows https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
but also disables HTTPS certificate verification.
2017-10-28 16:30:10 +02:00
Matt Joiner
911423307d
Add a test for bdecoding consecutive dicts
2017-10-26 14:26:27 +11:00
Matt Joiner
c6bb0fc3e4
Merge pull request #198 from BruceWangNo1/patch-1
...
Update "Other public projects using torrent" section on README.md
2017-10-22 14:41:19 +11:00
Bruce Wang
1e2256ea02
Update "Other public projects using torrent" section on README.md
...
I having been using your project for downloading torrent on my server for a couple of weeks now and it works very well. Thanks for your contribution! I used to use a simple HTTP file server to retrieve the downloaded files to my computer. As I used this cumbersome approach heavily on a daily basis, I began to implement a tool to download torrent efficiently just by running a local command with the magnet link which sends torrent download request to the server. You may find my current working prototype sloppy but please check out my project.
2017-10-21 07:10:29 -05:00
Matt Joiner
2ab850f56e
cmd/torrent-metainfo-pprint: Include metainfo's url-list in output
...
Helps with testing #197 .
2017-10-14 16:41:14 +11:00
Matt Joiner
5d133ea387
Remove debug log message
2017-10-12 17:52:26 +11:00
Matt Joiner
4f04d13532
Fix fs test link now that Debian 9.2 came out
2017-10-12 17:52:15 +11:00
Matt Joiner
7e857c875e
If closing a connection Conn fails we can't do anything, and there's nothing to say
2017-10-12 17:51:47 +11:00
Matt Joiner
39165ade83
Add apt-get update to CI
2017-10-12 16:32:11 +11:00