]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
9 years agoMerge remote-tracking branch 'libtorgo/master' into HEAD
Matt Joiner [Mon, 27 Apr 2015 04:36:35 +0000 (14:36 +1000)]
Merge remote-tracking branch 'libtorgo/master' into HEAD

9 years agofs: Improve test error handling if FUSE isn't available
Matt Joiner [Mon, 27 Apr 2015 04:06:00 +0000 (14:06 +1000)]
fs: Improve test error handling if FUSE isn't available

9 years agoRemove all the old intermediate config fields from Client
Matt Joiner [Mon, 27 Apr 2015 04:05:27 +0000 (14:05 +1000)]
Remove all the old intermediate config fields from Client

9 years agoAdd the --disable-tcp flag to the client options
Matt Joiner [Mon, 20 Apr 2015 07:35:21 +0000 (17:35 +1000)]
Add the --disable-tcp flag to the client options

9 years agoAdd the option to disable encryption
Matt Joiner [Mon, 20 Apr 2015 07:30:22 +0000 (17:30 +1000)]
Add the option to disable encryption

9 years agoRework the Torrent Reader interface, to allow reader options, and add "responsive...
Matt Joiner [Tue, 14 Apr 2015 13:59:41 +0000 (23:59 +1000)]
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.

9 years agoMove torrentOffsetRequest and torrentRequestOffset, fixing a bug in former, and test it
Matt Joiner [Tue, 7 Apr 2015 16:20:01 +0000 (02:20 +1000)]
Move torrentOffsetRequest and torrentRequestOffset, fixing a bug in former, and test it

9 years agoimport pp peer_protocol in misc.go
Matt Joiner [Tue, 7 Apr 2015 16:17:15 +0000 (02:17 +1000)]
import pp peer_protocol in misc.go

9 years agocmd/torrent-magnet: Error if arguments are given
Matt Joiner [Tue, 7 Apr 2015 16:15:25 +0000 (02:15 +1000)]
cmd/torrent-magnet: Error if arguments are given

Too easy to make this mistake, and then it hangs.

9 years agoMove piece into its own file
Matt Joiner [Tue, 7 Apr 2015 16:14:35 +0000 (02:14 +1000)]
Move piece into its own file

9 years agofs: Improve test logging
Matt Joiner [Tue, 7 Apr 2015 15:43:50 +0000 (01:43 +1000)]
fs: Improve test logging

9 years agocmd/...: Some package synopses
Matt Joiner [Mon, 6 Apr 2015 13:04:18 +0000 (23:04 +1000)]
cmd/...: Some package synopses

9 years agoMerge pull request #10 from milosgajdos83/dht-bootstrap-servers
Matt Joiner [Thu, 2 Apr 2015 23:33:40 +0000 (10:33 +1100)]
Merge pull request #10 from milosgajdos83/dht-bootstrap-servers

Added BootstrapNodes to dht.ServerConfig

9 years agoAdded BootstrapNodes to dht.ServerConfig
Milos Gajdos [Thu, 2 Apr 2015 22:35:30 +0000 (23:35 +0100)]
Added BootstrapNodes to dht.ServerConfig

This is beneficial to users who are running their own private trackers
or have outbound connections to ports 6881 disallowed on firewalls.

9 years agodht: Remove obsolete function Server.AnnouncePeer
Matt Joiner [Wed, 1 Apr 2015 06:38:17 +0000 (17:38 +1100)]
dht: Remove obsolete function Server.AnnouncePeer

9 years agodht: Apply blocklist to incoming packets
Matt Joiner [Wed, 1 Apr 2015 06:37:32 +0000 (17:37 +1100)]
dht: Apply blocklist to incoming packets

9 years agoIf IP blocklists are enabled, block anything that isn't IPv4
Matt Joiner [Wed, 1 Apr 2015 06:36:51 +0000 (17:36 +1100)]
If IP blocklists are enabled, block anything that isn't IPv4

I know of no public IPv6 blocklists.

9 years agodht: Clean-up interface, add loads of documentation
Matt Joiner [Wed, 1 Apr 2015 06:29:55 +0000 (17:29 +1100)]
dht: Clean-up interface, add loads of documentation

9 years agodht: Rename get_peers.go->announce.go
Matt Joiner [Wed, 1 Apr 2015 05:05:57 +0000 (16:05 +1100)]
dht: Rename get_peers.go->announce.go

It has had the wrong name for a very long time.

9 years agoUpdate README
Matt Joiner [Wed, 1 Apr 2015 03:36:38 +0000 (14:36 +1100)]
Update README

9 years agoRemove unnecessary reflection
Matt Joiner [Wed, 1 Apr 2015 03:34:57 +0000 (14:34 +1100)]
Remove unnecessary reflection

9 years agocmd/torrentfs: Tidy
Matt Joiner [Wed, 1 Apr 2015 03:32:42 +0000 (14:32 +1100)]
cmd/torrentfs: Tidy

9 years agofs: Remove noisy debug logging
Matt Joiner [Wed, 1 Apr 2015 03:31:29 +0000 (14:31 +1100)]
fs: Remove noisy debug logging

9 years agocmd/torrentfs: Check error creating client
Matt Joiner [Wed, 1 Apr 2015 03:30:22 +0000 (14:30 +1100)]
cmd/torrentfs: Check error creating client

This wouldn't have happened with exceptions ;)

9 years agofs: Root node wasn't listing: Bazil keeps changing his interface
Matt Joiner [Wed, 1 Apr 2015 01:15:44 +0000 (12:15 +1100)]
fs: Root node wasn't listing: Bazil keeps changing his interface

9 years agodht: Avoid allocation(s) testing if an IP is blocked
Matt Joiner [Mon, 30 Mar 2015 12:12:33 +0000 (23:12 +1100)]
dht: Avoid allocation(s) testing if an IP is blocked

9 years agoOpinionated torrent filter doesn't belong in this package
Matt Joiner [Mon, 30 Mar 2015 12:11:20 +0000 (23:11 +1100)]
Opinionated torrent filter doesn't belong in this package

9 years agoFix a few minor data races
Matt Joiner [Mon, 30 Mar 2015 12:10:37 +0000 (23:10 +1100)]
Fix a few minor data races

9 years agoUse math.MaxUint64, the more you know
Matt Joiner [Mon, 30 Mar 2015 12:08:43 +0000 (23:08 +1100)]
Use math.MaxUint64, the more you know

9 years agoFix peer parsing error introduced during tracker package merges
Matt Joiner [Mon, 30 Mar 2015 12:05:39 +0000 (23:05 +1100)]
Fix peer parsing error introduced during tracker package merges

9 years agoiplist: Fail invalid IPs, they were always passing
Matt Joiner [Fri, 27 Mar 2015 15:54:17 +0000 (02:54 +1100)]
iplist: Fail invalid IPs, they were always passing

9 years agoShow number of torrents in the client status
Matt Joiner [Fri, 27 Mar 2015 15:51:16 +0000 (02:51 +1100)]
Show number of torrents in the client status

9 years agoAddTorrentSpec now merges in new information an existing torrent didn't have
Matt Joiner [Fri, 27 Mar 2015 15:50:55 +0000 (02:50 +1100)]
AddTorrentSpec now merges in new information an existing torrent didn't have

9 years agocmd/tracker-announce: Send left=-1, which is what we send when we don't have the...
Matt Joiner [Fri, 27 Mar 2015 06:23:42 +0000 (17:23 +1100)]
cmd/tracker-announce: Send left=-1, which is what we send when we don't have the metainfo

9 years agoSend supportcrypto=1 to HTTP trackers
Matt Joiner [Fri, 27 Mar 2015 06:22:42 +0000 (17:22 +1100)]
Send supportcrypto=1 to HTTP trackers

9 years agoThe signedness on several tracker.AnnounceRequest fields now matters
Matt Joiner [Fri, 27 Mar 2015 06:22:00 +0000 (17:22 +1100)]
The signedness on several tracker.AnnounceRequest fields now matters

Sending negative ports and lefts through to HTTP trackers was making them mad.

9 years agoOnly the first tracker was being tried
Matt Joiner [Fri, 27 Mar 2015 06:20:02 +0000 (17:20 +1100)]
Only the first tracker was being tried

Must have lost this in the client tracker clean-up a while back.

9 years agoTidy up error handling on HTTP tracker client
Matt Joiner [Fri, 27 Mar 2015 06:18:45 +0000 (17:18 +1100)]
Tidy up error handling on HTTP tracker client

9 years agocmd/torrent-magnet: Converts a torrent from stdin to a magnet link
Matt Joiner [Fri, 27 Mar 2015 06:16:50 +0000 (17:16 +1100)]
cmd/torrent-magnet: Converts a torrent from stdin to a magnet link

9 years agoMore unnecessary log shushing
Matt Joiner [Fri, 27 Mar 2015 04:37:58 +0000 (15:37 +1100)]
More unnecessary log shushing

9 years agoPrevent bad metadata_size in extended handshakes from stalling completion of metadata
Matt Joiner [Fri, 27 Mar 2015 04:36:59 +0000 (15:36 +1100)]
Prevent bad metadata_size in extended handshakes from stalling completion of metadata

Occasionally bad peers send ridiculous or incorrect metadata_size in their handshakes. If the first acceptable size is wrong, and too small, we'll keep failing metadata completion. If it's too large, honest peers will never send us the pieces we're asking for and we'll never complete the metadata. Now we just adjust the expected metadata size, and keep retrying until we finish. Additionally, we can now request metadata after sending initial messages.

9 years agoMerge all the tracker packages, why would anyone want them separately?
Matt Joiner [Fri, 27 Mar 2015 04:12:15 +0000 (15:12 +1100)]
Merge all the tracker packages, why would anyone want them separately?

9 years agocmd/scrape -> cmd/tracker-announce, and a big refresh
Matt Joiner [Thu, 26 Mar 2015 06:22:17 +0000 (17:22 +1100)]
cmd/scrape -> cmd/tracker-announce, and a big refresh

What it was doing was not scraping, that's something completely different. Now it can also announce magnets.

9 years agoAlmost completed http tracker support
Matt Joiner [Thu, 26 Mar 2015 06:20:31 +0000 (17:20 +1100)]
Almost completed http tracker support

9 years agoUse rogpeppe's sortimports to fix this goimports ordering madness
Matt Joiner [Thu, 26 Mar 2015 06:18:08 +0000 (17:18 +1100)]
Use rogpeppe's sortimports to fix this goimports ordering madness

9 years agoThe license is MPL2.0
Matt Joiner [Wed, 25 Mar 2015 06:35:33 +0000 (17:35 +1100)]
The license is MPL2.0

Fixes #1

9 years agocmd/torrent: Report progress
Matt Joiner [Wed, 25 Mar 2015 06:32:42 +0000 (17:32 +1100)]
cmd/torrent: Report progress

Fixes #6

9 years agoSuppress some noisy errors that aren't interesting to the average user
Matt Joiner [Wed, 25 Mar 2015 06:28:34 +0000 (17:28 +1100)]
Suppress some noisy errors that aren't interesting to the average user

9 years agoFixes for changes to basil.org/fuse
Matt Joiner [Wed, 25 Mar 2015 06:25:24 +0000 (17:25 +1100)]
Fixes for changes to basil.org/fuse

9 years agoShow metadata state in status output
Matt Joiner [Wed, 25 Mar 2015 04:50:31 +0000 (15:50 +1100)]
Show metadata state in status output

This is help verify the cause for an occasional stall obtaining metadata from peers.

9 years agoMove ut_pex back into the "m" map
Matt Joiner [Wed, 25 Mar 2015 04:49:27 +0000 (15:49 +1100)]
Move ut_pex back into the "m" map

9 years agoAdd the ability to disable PEX
Matt Joiner [Wed, 25 Mar 2015 04:42:14 +0000 (15:42 +1100)]
Add the ability to disable PEX

Fixes #3

9 years agocmd/torrent: Replace flag with go-flags, rejig options
Matt Joiner [Wed, 25 Mar 2015 04:41:15 +0000 (15:41 +1100)]
cmd/torrent: Replace flag with go-flags, rejig options

9 years agoFix crash from bad metadata_size in extended handshake
Matt Joiner [Tue, 24 Mar 2015 05:46:34 +0000 (16:46 +1100)]
Fix crash from bad metadata_size in extended handshake

9 years agoMerge pull request #4 from dborzov/master
Matt Joiner [Mon, 23 Mar 2015 01:13:49 +0000 (12:13 +1100)]
Merge pull request #4 from dborzov/master

Add tests for ParseMagnetURI

9 years agoMerge pull request #5 from jzelinskie/master
Matt Joiner [Mon, 23 Mar 2015 01:10:49 +0000 (12:10 +1100)]
Merge pull request #5 from jzelinskie/master

add cli flag to disable DHT

9 years agoadd cli flag to disable DHT
Jimmy Zelinskie [Sun, 22 Mar 2015 22:24:31 +0000 (18:24 -0400)]
add cli flag to disable DHT

This partially addresses #3.

9 years agoFix test error message
Peter Borzov [Sun, 22 Mar 2015 17:57:57 +0000 (13:57 -0400)]
Fix test error message

9 years agoMake ParseMagnetURI easier to read
Peter Borzov [Sun, 22 Mar 2015 17:50:16 +0000 (13:50 -0400)]
Make ParseMagnetURI easier to read

9 years agoTest ParseMagnetURI
Peter Borzov [Sun, 22 Mar 2015 17:42:43 +0000 (13:42 -0400)]
Test ParseMagnetURI

9 years agoMerge pull request #2 from dborzov/master
Matt Joiner [Sun, 22 Mar 2015 12:11:33 +0000 (23:11 +1100)]
Merge pull request #2 from dborzov/master

Fix typos

9 years agoFix typos
Peter Borzov [Sat, 21 Mar 2015 13:11:45 +0000 (09:11 -0400)]
Fix typos

9 years agoMore public interface tidying
Matt Joiner [Fri, 20 Mar 2015 12:52:53 +0000 (23:52 +1100)]
More public interface tidying

9 years agocmd/torrent: Nicer usage
Matt Joiner [Fri, 20 Mar 2015 12:18:32 +0000 (23:18 +1100)]
cmd/torrent: Nicer usage

9 years agoImprove the README
Matt Joiner [Fri, 20 Mar 2015 12:18:09 +0000 (23:18 +1100)]
Improve the README

9 years agoUpdate Codeship badge URL
Matt Joiner [Fri, 20 Mar 2015 11:01:37 +0000 (22:01 +1100)]
Update Codeship badge URL

9 years agobitbucket.org/anacrolix/sync moved to github
Matt Joiner [Fri, 20 Mar 2015 05:46:39 +0000 (16:46 +1100)]
bitbucket.org/anacrolix/sync moved to github

9 years agoRewrite import paths for migration from Bitbucket
Matt Joiner [Fri, 20 Mar 2015 05:37:44 +0000 (16:37 +1100)]
Rewrite import paths for migration from Bitbucket

9 years agoAllow some overlap between piece prioritization classes
Matt Joiner [Thu, 19 Mar 2015 23:52:55 +0000 (10:52 +1100)]
Allow some overlap between piece prioritization classes

This probabilistically improves download speeds when doing readaheads

9 years agoMore cleaning up of public interface
Matt Joiner [Thu, 19 Mar 2015 23:52:01 +0000 (10:52 +1100)]
More cleaning up of public interface

9 years agoUpdate the example
Matt Joiner [Thu, 19 Mar 2015 23:51:06 +0000 (10:51 +1100)]
Update the example

9 years agoImprove connection status info, especially flags
Matt Joiner [Wed, 18 Mar 2015 07:38:29 +0000 (18:38 +1100)]
Improve connection status info, especially flags

9 years agoPiece priority tests
Matt Joiner [Wed, 18 Mar 2015 07:37:52 +0000 (18:37 +1100)]
Piece priority tests

9 years agoMisc, some encryption related
Matt Joiner [Wed, 18 Mar 2015 07:37:26 +0000 (18:37 +1100)]
Misc, some encryption related

9 years agoDon't accept unless connections are wanted
Matt Joiner [Wed, 18 Mar 2015 07:36:27 +0000 (18:36 +1100)]
Don't accept unless connections are wanted

9 years agoComments in banned torrent list
Matt Joiner [Wed, 18 Mar 2015 07:35:52 +0000 (18:35 +1100)]
Comments in banned torrent list

9 years agoHandle data going missing
Matt Joiner [Wed, 18 Mar 2015 07:35:22 +0000 (18:35 +1100)]
Handle data going missing

9 years agoSpeed up stuff relating to checking piece completion
Matt Joiner [Wed, 18 Mar 2015 07:34:35 +0000 (18:34 +1100)]
Speed up stuff relating to checking piece completion

9 years agoChange the interface to add torrents to a Client
Matt Joiner [Wed, 18 Mar 2015 07:32:31 +0000 (18:32 +1100)]
Change the interface to add torrents to a Client

9 years agoAvoid dopplegangers, foreign address that have our client ID
Matt Joiner [Wed, 18 Mar 2015 07:29:51 +0000 (18:29 +1100)]
Avoid dopplegangers, foreign address that have our client ID

9 years agoRewrite handshaking and connection management
Matt Joiner [Wed, 18 Mar 2015 07:28:13 +0000 (18:28 +1100)]
Rewrite handshaking and connection management

9 years agoDisable AllowedFast
Matt Joiner [Wed, 18 Mar 2015 07:21:00 +0000 (18:21 +1100)]
Disable AllowedFast

9 years agomse: Check that readUntil doesn't read indefinitely while synchronizing
Matt Joiner [Wed, 18 Mar 2015 07:16:27 +0000 (18:16 +1100)]
mse: Check that readUntil doesn't read indefinitely while synchronizing

9 years agomse: Clean-up
Matt Joiner [Wed, 18 Mar 2015 07:14:57 +0000 (18:14 +1100)]
mse: Clean-up

9 years agodata/blob: Change store eviction to LRU, from random replacement
Matt Joiner [Wed, 18 Mar 2015 07:12:46 +0000 (18:12 +1100)]
data/blob: Change store eviction to LRU, from random replacement

It works *much* better for torrenting with a readahead window. When we want to
avoid downloading, we want to avoid downloading lots of dispersed pieces.

9 years agoutil: Support CopyExact with pointer source
Matt Joiner [Wed, 18 Mar 2015 07:09:54 +0000 (18:09 +1100)]
util: Support CopyExact with pointer source

Nice to avoid copying large value types.

9 years agoSupport initial payload, and improve tests
Matt Joiner [Fri, 13 Mar 2015 03:30:48 +0000 (14:30 +1100)]
Support initial payload, and improve tests

9 years agoTidy up extension bytes handling; don't close conn from handshake writer; force proto...
Matt Joiner [Thu, 12 Mar 2015 19:21:13 +0000 (06:21 +1100)]
Tidy up extension bytes handling; don't close conn from handshake writer; force protocol encryption for now

9 years agomse: Tons of fixes and improvements
Matt Joiner [Thu, 12 Mar 2015 19:16:49 +0000 (06:16 +1100)]
mse: Tons of fixes and improvements

9 years agomsg: Return usable object after handshake
Matt Joiner [Thu, 12 Mar 2015 09:29:48 +0000 (20:29 +1100)]
msg: Return usable object after handshake

9 years agoAdd BEP 41 support
Matt Joiner [Thu, 12 Mar 2015 09:07:10 +0000 (20:07 +1100)]
Add BEP 41 support

9 years agoAdd support for Fast Extension
Matt Joiner [Thu, 12 Mar 2015 09:06:23 +0000 (20:06 +1100)]
Add support for Fast Extension

9 years agoCount peers obtained by tracker
Matt Joiner [Thu, 12 Mar 2015 09:04:44 +0000 (20:04 +1100)]
Count peers obtained by tracker

9 years agomse: Got basic message stream encryption working with some tests
Matt Joiner [Thu, 12 Mar 2015 09:03:29 +0000 (20:03 +1100)]
mse: Got basic message stream encryption working with some tests

Not complete yet.

9 years agoUse testing config
Matt Joiner [Tue, 10 Mar 2015 17:22:56 +0000 (04:22 +1100)]
Use testing config

9 years agoApply IP blocklist to trackers
Matt Joiner [Tue, 10 Mar 2015 15:41:41 +0000 (02:41 +1100)]
Apply IP blocklist to trackers

9 years agoRework piece completion
Matt Joiner [Tue, 10 Mar 2015 15:41:21 +0000 (02:41 +1100)]
Rework piece completion

9 years agoHarmless improvements
Matt Joiner [Tue, 10 Mar 2015 15:39:01 +0000 (02:39 +1100)]
Harmless improvements

9 years agoTODO
Matt Joiner [Mon, 9 Mar 2015 06:36:07 +0000 (17:36 +1100)]
TODO

9 years agoFix a status line going to stdout
Matt Joiner [Mon, 9 Mar 2015 06:35:51 +0000 (17:35 +1100)]
Fix a status line going to stdout