]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
10 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.

10 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?

10 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.

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

10 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

10 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

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

Fixes #6

10 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

10 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

10 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.

10 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

10 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

10 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

10 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

10 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

10 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

10 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.

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

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

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

10 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

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

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

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

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

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

10 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

10 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

10 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

10 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

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

10 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

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

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

10 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

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

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

10 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

10 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

10 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

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

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

10 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

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

10 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.

10 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.

10 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

10 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

10 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

10 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

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

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

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

10 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.

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

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

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

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

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

10 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

10 years agoChange torrent.Name()
Matt Joiner [Mon, 9 Mar 2015 06:35:29 +0000 (17:35 +1100)]
Change torrent.Name()

10 years agoutil.AddrIP, TCPAddr
Matt Joiner [Sun, 8 Mar 2015 06:44:08 +0000 (17:44 +1100)]
util.AddrIP, TCPAddr

10 years agoiplist: Fix ranges that contain extra colons, and minimize memory use for IP
Matt Joiner [Sun, 8 Mar 2015 06:43:44 +0000 (17:43 +1100)]
iplist: Fix ranges that contain extra colons, and minimize memory use for IP

10 years agoMore cleaning of public interface
Matt Joiner [Sun, 8 Mar 2015 06:28:14 +0000 (17:28 +1100)]
More cleaning of public interface

10 years agoChange up the data storage interfaces a bit
Matt Joiner [Sat, 7 Mar 2015 06:11:45 +0000 (17:11 +1100)]
Change up the data storage interfaces a bit

10 years agoSince IPv6 blocklists aren't prevalent, default to using IPv4 in client for now
Matt Joiner [Sat, 7 Mar 2015 06:11:02 +0000 (17:11 +1100)]
Since IPv6 blocklists aren't prevalent, default to using IPv4 in client for now

10 years agoiplist: Check for matches against IPv4 and IPv6 addresses
Matt Joiner [Sat, 7 Mar 2015 06:09:39 +0000 (17:09 +1100)]
iplist: Check for matches against IPv4 and IPv6 addresses

10 years agoImprovements to P2P blocklist scanning errors
Matt Joiner [Sat, 7 Mar 2015 06:09:18 +0000 (17:09 +1100)]
Improvements to P2P blocklist scanning errors

10 years agoChange the way readahead pieces are calculated
Matt Joiner [Wed, 4 Mar 2015 02:07:11 +0000 (13:07 +1100)]
Change the way readahead pieces are calculated

10 years agoImplement Handle.ReadAt
Matt Joiner [Wed, 4 Mar 2015 02:06:33 +0000 (13:06 +1100)]
Implement Handle.ReadAt

10 years agoExtraneous import
Matt Joiner [Sun, 1 Mar 2015 04:19:35 +0000 (15:19 +1100)]
Extraneous import

10 years agoTODO
Matt Joiner [Sun, 1 Mar 2015 03:33:10 +0000 (14:33 +1100)]
TODO

10 years agoSupport opening handles to Torrent and File
Matt Joiner [Sun, 1 Mar 2015 03:32:54 +0000 (14:32 +1100)]
Support opening handles to Torrent and File

10 years agoMake blob data stateful
Matt Joiner [Fri, 27 Feb 2015 01:45:55 +0000 (12:45 +1100)]
Make blob data stateful

10 years agoFiles.Path and .FileInfo change
Matt Joiner [Thu, 26 Feb 2015 14:46:40 +0000 (01:46 +1100)]
Files.Path and .FileInfo change

10 years agoAdd piece blob torrent.Data storage, and move testutil to internal/, add basic transf...
Matt Joiner [Thu, 26 Feb 2015 14:46:02 +0000 (01:46 +1100)]
Add piece blob torrent.Data storage, and move testutil to internal/, add basic transfer test for Client and blob

10 years agoRename TorrentData->Data
Matt Joiner [Thu, 26 Feb 2015 14:43:37 +0000 (01:43 +1100)]
Rename TorrentData->Data

10 years agoDitch the intermediate MetaInfo type
Matt Joiner [Thu, 26 Feb 2015 11:17:58 +0000 (22:17 +1100)]
Ditch the intermediate MetaInfo type

10 years agofs test: Resolve localhost, some platforms are funny about it
Matt Joiner [Thu, 26 Feb 2015 05:11:33 +0000 (16:11 +1100)]
fs test: Resolve localhost, some platforms are funny about it

10 years agoClient.Torrent(InfoHash)
Matt Joiner [Thu, 26 Feb 2015 05:10:55 +0000 (16:10 +1100)]
Client.Torrent(InfoHash)

10 years agoImplement File.ReadAt
Matt Joiner [Thu, 26 Feb 2015 05:10:38 +0000 (16:10 +1100)]
Implement File.ReadAt

10 years agoScale readahead pieces a bit
Matt Joiner [Thu, 26 Feb 2015 05:10:15 +0000 (16:10 +1100)]
Scale readahead pieces a bit

10 years agoHide a whole bunch of functions seen via torrent
Matt Joiner [Wed, 25 Feb 2015 04:42:47 +0000 (15:42 +1100)]
Hide a whole bunch of functions seen via torrent

10 years agoSet torrentDataOpener from config
Matt Joiner [Wed, 25 Feb 2015 04:41:13 +0000 (15:41 +1100)]
Set torrentDataOpener from config

10 years agoNot listening!
Matt Joiner [Wed, 25 Feb 2015 03:52:19 +0000 (14:52 +1100)]
Not listening!

10 years agoReturn no Files if Torrent Info isn't available
Matt Joiner [Wed, 25 Feb 2015 03:51:56 +0000 (14:51 +1100)]
Return no Files if Torrent Info isn't available

10 years agoFix imports
Matt Joiner [Wed, 25 Feb 2015 03:51:12 +0000 (14:51 +1100)]
Fix imports

10 years agoAdd Magnet.String()
Matt Joiner [Wed, 25 Feb 2015 03:50:01 +0000 (14:50 +1100)]
Add Magnet.String()

10 years agoAllow configuring Client torrent data opener, config dir, disabling metainfo cache...
Matt Joiner [Wed, 25 Feb 2015 03:48:39 +0000 (14:48 +1100)]
Allow configuring Client torrent data opener, config dir, disabling metainfo cache, and prune with a timer instead of goroutine

10 years agoMake IPBlockList accessible from Client
Matt Joiner [Wed, 25 Feb 2015 00:25:22 +0000 (11:25 +1100)]
Make IPBlockList accessible from Client

10 years agoRemove unused code
Matt Joiner [Tue, 24 Feb 2015 14:40:27 +0000 (01:40 +1100)]
Remove unused code

10 years agoComments
Matt Joiner [Tue, 24 Feb 2015 14:34:57 +0000 (01:34 +1100)]
Comments

10 years agoHopefully maybe fix bind error on Codeship test runner
Matt Joiner [Sat, 21 Feb 2015 04:25:34 +0000 (15:25 +1100)]
Hopefully maybe fix bind error on Codeship test runner

10 years agoChange piece prioritization
Matt Joiner [Sat, 21 Feb 2015 04:02:31 +0000 (15:02 +1100)]
Change piece prioritization

10 years agoImprove announcer routines
Matt Joiner [Sat, 21 Feb 2015 04:02:06 +0000 (15:02 +1100)]
Improve announcer routines

10 years agodht: Handle responses through a callback
Matt Joiner [Sat, 21 Feb 2015 04:00:48 +0000 (15:00 +1100)]
dht: Handle responses through a callback

Trying to reduce number of goroutines

10 years agoComments
Matt Joiner [Sat, 21 Feb 2015 03:58:28 +0000 (14:58 +1100)]
Comments

10 years agoChange status output
Matt Joiner [Sat, 21 Feb 2015 03:57:37 +0000 (14:57 +1100)]
Change status output

10 years agoTweak handshaking and peer water marks
Matt Joiner [Sat, 21 Feb 2015 03:56:17 +0000 (14:56 +1100)]
Tweak handshaking and peer water marks

10 years agoLimit pending requests to increase responsiveness
Matt Joiner [Sat, 21 Feb 2015 03:54:15 +0000 (14:54 +1100)]
Limit pending requests to increase responsiveness