]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
9 years agoPiece priorities, torrent read interface and many fixes
Matt Joiner [Wed, 3 Dec 2014 07:07:50 +0000 (01:07 -0600)]
Piece priorities, torrent read interface and many fixes

9 years agodht: Don't log messages that have been truncated
Matt Joiner [Wed, 3 Dec 2014 00:43:28 +0000 (18:43 -0600)]
dht: Don't log messages that have been truncated

9 years agoHarmless shortcut initing peer pieces when we have the torrent info
Matt Joiner [Wed, 3 Dec 2014 00:43:05 +0000 (18:43 -0600)]
Harmless shortcut initing peer pieces when we have the torrent info

9 years agoWhen metadata arrives, we also need to init request ordering
Matt Joiner [Wed, 3 Dec 2014 00:42:22 +0000 (18:42 -0600)]
When metadata arrives, we also need to init request ordering

9 years agoRemove commented out code
Matt Joiner [Wed, 3 Dec 2014 00:23:07 +0000 (18:23 -0600)]
Remove commented out code

9 years agoAdd piece ordering per-connection piece request priority
Matt Joiner [Wed, 3 Dec 2014 00:22:38 +0000 (18:22 -0600)]
Add piece ordering per-connection piece request priority

9 years agodht: Receiving UDP source port 0 isn't an error apparently
Matt Joiner [Tue, 2 Dec 2014 20:55:41 +0000 (14:55 -0600)]
dht: Receiving UDP source port 0 isn't an error apparently

9 years agoiplist: Double performance of parsing line
Matt Joiner [Tue, 2 Dec 2014 20:55:06 +0000 (14:55 -0600)]
iplist: Double performance of parsing line

9 years agoiplist: Benchmark parsing lines
Matt Joiner [Tue, 2 Dec 2014 20:54:37 +0000 (14:54 -0600)]
iplist: Benchmark parsing lines

9 years agoSpeed up tests, allow -short for some UDP tracker stuff
Matt Joiner [Tue, 2 Dec 2014 20:23:01 +0000 (14:23 -0600)]
Speed up tests, allow -short for some UDP tracker stuff

9 years agoBacked out changeset: 603a76a6bdb0
Matt Joiner [Tue, 2 Dec 2014 06:11:39 +0000 (00:11 -0600)]
Backed out changeset: 603a76a6bdb0

9 years agoiplist: Reuse the p2p line regexp
Matt Joiner [Tue, 2 Dec 2014 05:49:21 +0000 (23:49 -0600)]
iplist: Reuse the p2p line regexp

9 years agoUpdate to use utp package redesign
Matt Joiner [Tue, 2 Dec 2014 05:35:39 +0000 (23:35 -0600)]
Update to use utp package redesign

9 years agoReuse the info bytes when marshalling torrent metainfo
Matt Joiner [Tue, 2 Dec 2014 05:33:38 +0000 (23:33 -0600)]
Reuse the info bytes when marshalling torrent metainfo

9 years agoEnsure that when a cached torrent is used, the info hash is correct
Matt Joiner [Tue, 2 Dec 2014 05:32:40 +0000 (23:32 -0600)]
Ensure that when a cached torrent is used, the info hash is correct

9 years agoSkip mapping files with length 0
Matt Joiner [Tue, 2 Dec 2014 01:13:08 +0000 (19:13 -0600)]
Skip mapping files with length 0

9 years agodht: Don't log messages that fail to decode on the first byte
Matt Joiner [Tue, 2 Dec 2014 01:12:26 +0000 (19:12 -0600)]
dht: Don't log messages that fail to decode on the first byte

9 years agoDon't clobber torrent name with empty magnet display name
Matt Joiner [Tue, 2 Dec 2014 01:12:03 +0000 (19:12 -0600)]
Don't clobber torrent name with empty magnet display name

9 years agoFor now always read ahead 4 extra blocks
Matt Joiner [Mon, 1 Dec 2014 23:02:31 +0000 (17:02 -0600)]
For now always read ahead 4 extra blocks

9 years agodht: Improve bad KRPC message screening
Matt Joiner [Mon, 1 Dec 2014 23:01:55 +0000 (17:01 -0600)]
dht: Improve bad KRPC message screening

9 years agoTrivial
Matt Joiner [Mon, 1 Dec 2014 22:40:18 +0000 (16:40 -0600)]
Trivial

9 years agoRework torrent adding
Matt Joiner [Mon, 1 Dec 2014 22:40:03 +0000 (16:40 -0600)]
Rework torrent adding

9 years agoSupport banning torrents
Matt Joiner [Mon, 1 Dec 2014 22:39:09 +0000 (16:39 -0600)]
Support banning torrents

9 years agoDon't send constructed MetaInfo down a channel when it's available, build it on demand
Matt Joiner [Mon, 1 Dec 2014 22:37:40 +0000 (16:37 -0600)]
Don't send constructed MetaInfo down a channel when it's available, build it on demand

9 years agoAdd InfoHash.HexString convenience
Matt Joiner [Mon, 1 Dec 2014 22:34:45 +0000 (16:34 -0600)]
Add InfoHash.HexString convenience

9 years agocmd/torrentfs: Tidy up flags, switch to default download strategy
Matt Joiner [Mon, 1 Dec 2014 20:31:52 +0000 (14:31 -0600)]
cmd/torrentfs: Tidy up flags, switch to default download strategy

9 years agoDestroy the torrent FS on exit signals so ongoing syscalls don't block the unmount
Matt Joiner [Mon, 1 Dec 2014 20:30:50 +0000 (14:30 -0600)]
Destroy the torrent FS on exit signals so ongoing syscalls don't block the unmount

9 years agotorrent.String, if the name isn't available, use the info hash
Matt Joiner [Mon, 1 Dec 2014 20:29:30 +0000 (14:29 -0600)]
torrent.String, if the name isn't available, use the info hash

9 years agoSkip on errors testing UDP tracker, need to implement a fake server
Matt Joiner [Mon, 1 Dec 2014 20:29:08 +0000 (14:29 -0600)]
Skip on errors testing UDP tracker, need to implement a fake server

9 years agoSleep between announces in case there are no trackers
Matt Joiner [Mon, 1 Dec 2014 18:43:34 +0000 (12:43 -0600)]
Sleep between announces in case there are no trackers

9 years agoImprove the interface with client and download strategies
Matt Joiner [Mon, 1 Dec 2014 09:37:33 +0000 (03:37 -0600)]
Improve the interface with client and download strategies

9 years agoGive each connection its own piece priority order
Matt Joiner [Mon, 1 Dec 2014 09:36:25 +0000 (03:36 -0600)]
Give each connection its own piece priority order

9 years agoFast start torrent tracker announces
Matt Joiner [Mon, 1 Dec 2014 09:33:52 +0000 (03:33 -0600)]
Fast start torrent tracker announces

9 years agoMisc good fixes
Matt Joiner [Mon, 1 Dec 2014 09:32:17 +0000 (03:32 -0600)]
Misc good fixes

9 years agocmd/torrent: Add -upload flag
Matt Joiner [Mon, 1 Dec 2014 09:29:56 +0000 (03:29 -0600)]
cmd/torrent: Add -upload flag

9 years agoLog the type for a rare DHT crash
Matt Joiner [Mon, 1 Dec 2014 09:29:06 +0000 (03:29 -0600)]
Log the type for a rare DHT crash

9 years agoDisable IP block list in some tests
Matt Joiner [Mon, 1 Dec 2014 09:28:39 +0000 (03:28 -0600)]
Disable IP block list in some tests

9 years agoNot ever hashed takes higher priority than partially downloaded
Matt Joiner [Mon, 1 Dec 2014 09:28:25 +0000 (03:28 -0600)]
Not ever hashed takes higher priority than partially downloaded

9 years agoWhen metainfo isn't complete, treat peers that don't support ut_metadata as useless
Matt Joiner [Mon, 1 Dec 2014 09:27:52 +0000 (03:27 -0600)]
When metainfo isn't complete, treat peers that don't support ut_metadata as useless

9 years agoBlock IPv6 for now
Matt Joiner [Mon, 1 Dec 2014 09:27:11 +0000 (03:27 -0600)]
Block IPv6 for now

9 years agoFix race reordering tracker tier
Matt Joiner [Sun, 30 Nov 2014 02:33:45 +0000 (20:33 -0600)]
Fix race reordering tracker tier

9 years agoSome changes to block list handling
Matt Joiner [Sun, 30 Nov 2014 02:33:17 +0000 (20:33 -0600)]
Some changes to block list handling

9 years agodht: Error while sending a find_node during bootstrap is not fatal
Matt Joiner [Sun, 30 Nov 2014 02:31:07 +0000 (20:31 -0600)]
dht: Error while sending a find_node during bootstrap is not fatal

9 years agoDefault download strategy: Download while initial hashing
Matt Joiner [Sun, 30 Nov 2014 02:30:20 +0000 (20:30 -0600)]
Default download strategy: Download while initial hashing

9 years agoPrint iplist.Range nicely
Matt Joiner [Sun, 30 Nov 2014 02:30:04 +0000 (20:30 -0600)]
Print iplist.Range nicely

9 years agorouter.bittorrent.com is in the level1 blocklist so use the alternative bootstrap...
Matt Joiner [Sat, 29 Nov 2014 01:45:12 +0000 (19:45 -0600)]
router.bittorrent.com is in the level1 blocklist so use the alternative bootstrap addr

9 years agoA few tweaks
Matt Joiner [Sat, 29 Nov 2014 01:42:18 +0000 (19:42 -0600)]
A few tweaks

9 years agoMake use of IP blocklist and change the client lock to RWMutex
Matt Joiner [Sat, 29 Nov 2014 01:41:53 +0000 (19:41 -0600)]
Make use of IP blocklist and change the client lock to RWMutex

The blocklist is loaded through from the file at TORRENT_BLOCKLIST_FILE or
$HOME/.config/torrent/blocklist.

9 years agoChange all references to github.com/nsf/libtorgo to github.com/anacrolix/libtorgo
Matt Joiner [Fri, 28 Nov 2014 18:13:57 +0000 (12:13 -0600)]
Change all references to github.com/nsf/libtorgo to github.com/anacrolix/libtorgo

9 years agoAllow DHT server config to be passed through when creating a new client
Matt Joiner [Fri, 28 Nov 2014 18:13:08 +0000 (12:13 -0600)]
Allow DHT server config to be passed through when creating a new client

9 years agoAdd a passive flag for DHT, that disables responding to queries
Matt Joiner [Fri, 28 Nov 2014 18:04:38 +0000 (12:04 -0600)]
Add a passive flag for DHT, that disables responding to queries

9 years agoImplement iplist package, for block lists
Matt Joiner [Fri, 28 Nov 2014 18:04:15 +0000 (12:04 -0600)]
Implement iplist package, for block lists

9 years agoExtra time between tracker announces
Matt Joiner [Fri, 28 Nov 2014 14:39:13 +0000 (08:39 -0600)]
Extra time between tracker announces

9 years agoWasn't actually copying the tiers
Matt Joiner [Fri, 21 Nov 2014 06:54:19 +0000 (00:54 -0600)]
Wasn't actually copying the tiers

http://stackoverflow.com/questions/27055626/concisely-deep-copy-a-slice

9 years agoImprove tracker connect error log message
Matt Joiner [Fri, 21 Nov 2014 06:32:39 +0000 (00:32 -0600)]
Improve tracker connect error log message

9 years agoShuffle tracker tiers after adding trackers
Matt Joiner [Fri, 21 Nov 2014 06:32:27 +0000 (00:32 -0600)]
Shuffle tracker tiers after adding trackers

9 years agoTODO
Matt Joiner [Fri, 21 Nov 2014 06:11:13 +0000 (00:11 -0600)]
TODO

9 years agoMerge trackers by magnet links if the torrent is already present
Matt Joiner [Fri, 21 Nov 2014 06:10:52 +0000 (00:10 -0600)]
Merge trackers by magnet links if the torrent is already present

9 years agoDon't open new connections or announce when new connections aren't wanted
Matt Joiner [Fri, 21 Nov 2014 06:09:55 +0000 (00:09 -0600)]
Don't open new connections or announce when new connections aren't wanted

9 years agoInclude trackers in WriteStatus
Matt Joiner [Fri, 21 Nov 2014 06:07:42 +0000 (00:07 -0600)]
Include trackers in WriteStatus

9 years agoFix default torrent client address, and leaked resources
Matt Joiner [Fri, 21 Nov 2014 06:07:04 +0000 (00:07 -0600)]
Fix default torrent client address, and leaked resources

9 years agoAdd PendingData call to download strategy interface
Matt Joiner [Fri, 21 Nov 2014 06:05:09 +0000 (00:05 -0600)]
Add PendingData call to download strategy interface

9 years agoFix accidental pass by value
Matt Joiner [Fri, 21 Nov 2014 06:04:45 +0000 (00:04 -0600)]
Fix accidental pass by value

9 years agoUse a buffer to reduce syscall.Write calls
Matt Joiner [Fri, 21 Nov 2014 06:04:07 +0000 (00:04 -0600)]
Use a buffer to reduce syscall.Write calls

9 years agotracker: Add an explicit URL() method
Matt Joiner [Fri, 21 Nov 2014 05:39:56 +0000 (23:39 -0600)]
tracker: Add an explicit URL() method

Needed for merging tracker lists.

9 years agoIgnore failures due to FUSE not available
Matt Joiner [Thu, 20 Nov 2014 22:28:14 +0000 (16:28 -0600)]
Ignore failures due to FUSE not available

9 years agotracker/udp: Triage errors in tests to real hosts
Matt Joiner [Thu, 20 Nov 2014 22:24:49 +0000 (16:24 -0600)]
tracker/udp: Triage errors in tests to real hosts

9 years agoNo longer require FUSE to run fs test
Matt Joiner [Thu, 20 Nov 2014 18:50:53 +0000 (12:50 -0600)]
No longer require FUSE to run fs test

9 years agoSupport disabling UTP
Matt Joiner [Thu, 20 Nov 2014 02:02:20 +0000 (20:02 -0600)]
Support disabling UTP

9 years agodht: Reduce allocations in calculating ID distance
Matt Joiner [Thu, 20 Nov 2014 02:02:03 +0000 (20:02 -0600)]
dht: Reduce allocations in calculating ID distance

9 years agoDon't allocate pieces map unless necessary when filling responsive requests
Matt Joiner [Thu, 20 Nov 2014 02:01:32 +0000 (20:01 -0600)]
Don't allocate pieces map unless necessary when filling responsive requests

9 years agotorrentfs tests: Use dynamic port
Matt Joiner [Thu, 20 Nov 2014 02:01:03 +0000 (20:01 -0600)]
torrentfs tests: Use dynamic port

9 years agologhttp: The status server should run on the default mux
Matt Joiner [Thu, 20 Nov 2014 02:00:43 +0000 (20:00 -0600)]
loghttp: The status server should run on the default mux

9 years agoSimple connection pruner
Matt Joiner [Wed, 19 Nov 2014 04:03:21 +0000 (22:03 -0600)]
Simple connection pruner

9 years agoExpose a Torrent "handle", that implements ReaderAt
Matt Joiner [Wed, 19 Nov 2014 03:58:36 +0000 (21:58 -0600)]
Expose a Torrent "handle", that implements ReaderAt

9 years agoLog bad metadata packets instead of crashing
Matt Joiner [Wed, 19 Nov 2014 03:57:27 +0000 (21:57 -0600)]
Log bad metadata packets instead of crashing

9 years agobuffer WriteStatus and always write torrents in the same order
Matt Joiner [Wed, 19 Nov 2014 03:56:50 +0000 (21:56 -0600)]
buffer WriteStatus and always write torrents in the same order

9 years agodht: Handle truncated KRPC packets better, requires an update to bencode package
Matt Joiner [Wed, 19 Nov 2014 03:54:53 +0000 (21:54 -0600)]
dht: Handle truncated KRPC packets better, requires an update to bencode package

9 years agoTriage a possible bug blocking while closing UTPConns
Matt Joiner [Wed, 19 Nov 2014 03:53:57 +0000 (21:53 -0600)]
Triage a possible bug blocking while closing UTPConns

9 years agoSet a minimum dial timeout
Matt Joiner [Wed, 19 Nov 2014 03:53:00 +0000 (21:53 -0600)]
Set a minimum dial timeout

9 years agoTODO
Matt Joiner [Wed, 19 Nov 2014 03:51:49 +0000 (21:51 -0600)]
TODO

9 years agoutil/loghttp: Don't implicitly expose pprof
Matt Joiner [Wed, 19 Nov 2014 03:51:36 +0000 (21:51 -0600)]
util/loghttp: Don't implicitly expose pprof

9 years agoImprove unknown xt parameter encoding error message
Matt Joiner [Tue, 18 Nov 2014 20:36:56 +0000 (14:36 -0600)]
Improve unknown xt parameter encoding error message

9 years agoExpose a wrapped metainfo type with helper methods
Matt Joiner [Tue, 18 Nov 2014 20:36:27 +0000 (14:36 -0600)]
Expose a wrapped metainfo type with helper methods

9 years agoutil: LoggedHTTPServe uses its own mux for use as a HTTP status server
Matt Joiner [Tue, 18 Nov 2014 20:35:32 +0000 (14:35 -0600)]
util: LoggedHTTPServe uses its own mux for use as a HTTP status server

9 years agoAdding a duplicate magnet returns the existing torrent
Matt Joiner [Tue, 18 Nov 2014 20:34:13 +0000 (14:34 -0600)]
Adding a duplicate magnet returns the existing torrent

9 years agoFix race condition calculating reduced dial timeout
Matt Joiner [Tue, 18 Nov 2014 20:33:07 +0000 (14:33 -0600)]
Fix race condition calculating reduced dial timeout

9 years agoImprove client status write-out
Matt Joiner [Tue, 18 Nov 2014 20:32:51 +0000 (14:32 -0600)]
Improve client status write-out

9 years agoCount accepted connections
Matt Joiner [Tue, 18 Nov 2014 20:31:47 +0000 (14:31 -0600)]
Count accepted connections

9 years agodht: Improve Server.GetPeers so new nodes are fed directly back into the current...
Matt Joiner [Tue, 18 Nov 2014 18:38:13 +0000 (12:38 -0600)]
dht: Improve Server.GetPeers so new nodes are fed directly back into the current discovery

9 years agocmd/dht-ping: Various improvements more like a real ping program
Matt Joiner [Tue, 18 Nov 2014 18:36:36 +0000 (12:36 -0600)]
cmd/dht-ping: Various improvements more like a real ping program

9 years agocmd/dht-get-peers: Add -once flag to do a single scrape
Matt Joiner [Tue, 18 Nov 2014 15:56:37 +0000 (09:56 -0600)]
cmd/dht-get-peers: Add -once flag to do a single scrape

9 years agocmd/dht-get-peers: Expose debug HTTP
Matt Joiner [Tue, 18 Nov 2014 15:56:05 +0000 (09:56 -0600)]
cmd/dht-get-peers: Expose debug HTTP

9 years agoEnsure the parallel dial invariant
Matt Joiner [Tue, 18 Nov 2014 00:04:33 +0000 (18:04 -0600)]
Ensure the parallel dial invariant

9 years agoReduce dial timeouts when there are lots of peers in the backlog
Matt Joiner [Tue, 18 Nov 2014 00:04:09 +0000 (18:04 -0600)]
Reduce dial timeouts when there are lots of peers in the backlog

9 years agodht: Reduce announce peer parallelism now that node goodness is fixed
Matt Joiner [Tue, 18 Nov 2014 00:03:28 +0000 (18:03 -0600)]
dht: Reduce announce peer parallelism now that node goodness is fixed

9 years agodht: Move packet processing into a separate function
Matt Joiner [Tue, 18 Nov 2014 00:03:03 +0000 (18:03 -0600)]
dht: Move packet processing into a separate function

9 years agodht: Fix "good" node determination
Matt Joiner [Tue, 18 Nov 2014 00:02:16 +0000 (18:02 -0600)]
dht: Fix "good" node determination

9 years agodht: Include the sender of peers in the peer stream
Matt Joiner [Mon, 17 Nov 2014 23:47:36 +0000 (17:47 -0600)]
dht: Include the sender of peers in the peer stream

9 years agoutil/CopyExact: Test copying from interfaces and nil
Matt Joiner [Mon, 17 Nov 2014 23:43:41 +0000 (17:43 -0600)]
util/CopyExact: Test copying from interfaces and nil