]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
10 years agoExport some log events via expvar instead
Matt Joiner [Thu, 21 Aug 2014 15:33:13 +0000 (01:33 +1000)]
Export some log events via expvar instead

10 years agoFix error in bitfield correction expression and off by one condition when metadata...
Matt Joiner [Thu, 21 Aug 2014 15:26:41 +0000 (01:26 +1000)]
Fix error in bitfield correction expression and off by one condition when metadata is completed

10 years agoRemove torrent from download strategy when dropped
Matt Joiner [Thu, 21 Aug 2014 15:25:18 +0000 (01:25 +1000)]
Remove torrent from download strategy when dropped

10 years agoAdd test for dht.NewServer and change StopServing to Close
Matt Joiner [Thu, 21 Aug 2014 11:12:50 +0000 (21:12 +1000)]
Add test for dht.NewServer and change StopServing to Close

10 years agoStore pending peers in a dict to prevent duplicates
Matt Joiner [Thu, 21 Aug 2014 11:10:19 +0000 (21:10 +1000)]
Store pending peers in a dict to prevent duplicates

10 years agoClean up imports
Matt Joiner [Thu, 21 Aug 2014 11:08:56 +0000 (21:08 +1000)]
Clean up imports

10 years agoMove some tracker.CompactPeer into util
Matt Joiner [Thu, 21 Aug 2014 11:07:44 +0000 (21:07 +1000)]
Move some tracker.CompactPeer into util

10 years agoAdd CopyExact util function
Matt Joiner [Thu, 21 Aug 2014 08:24:19 +0000 (18:24 +1000)]
Add CopyExact util function

10 years agoAdd TODO file
Matt Joiner [Thu, 21 Aug 2014 08:13:41 +0000 (18:13 +1000)]
Add TODO file

10 years agoImprove the internal connection and handshake logic
Matt Joiner [Thu, 21 Aug 2014 08:12:49 +0000 (18:12 +1000)]
Improve the internal connection and handshake logic

10 years agoTidy up the torrent and DHT APIs
Matt Joiner [Thu, 21 Aug 2014 08:07:06 +0000 (18:07 +1000)]
Tidy up the torrent and DHT APIs

10 years agoPrint dht-ping reponses with %q
Matt Joiner [Sat, 16 Aug 2014 14:44:05 +0000 (00:44 +1000)]
Print dht-ping reponses with %q

10 years agoTriage upload contention due to lack of uploader routine
Matt Joiner [Thu, 24 Jul 2014 03:46:49 +0000 (13:46 +1000)]
Triage upload contention due to lack of uploader routine

10 years agoTriage announcer leak on dropped torrents
Matt Joiner [Thu, 24 Jul 2014 03:46:14 +0000 (13:46 +1000)]
Triage announcer leak on dropped torrents

10 years agocmd/torrentfs: Missing listener on client
Matt Joiner [Thu, 24 Jul 2014 03:45:49 +0000 (13:45 +1000)]
cmd/torrentfs: Missing listener on client

10 years agodht: Message only the most likely peers
Matt Joiner [Thu, 24 Jul 2014 03:45:18 +0000 (13:45 +1000)]
dht: Message only the most likely peers

10 years agoSupport watching for ".magnet" files in torrent directory
Matt Joiner [Thu, 24 Jul 2014 03:44:23 +0000 (13:44 +1000)]
Support watching for ".magnet" files in torrent directory

10 years agoComments and logging
Matt Joiner [Thu, 24 Jul 2014 03:43:45 +0000 (13:43 +1000)]
Comments and logging

10 years agoImprove client status
Matt Joiner [Thu, 24 Jul 2014 03:43:11 +0000 (13:43 +1000)]
Improve client status

10 years agoMove priority management entirely into the download strategies
Matt Joiner [Thu, 24 Jul 2014 03:42:31 +0000 (13:42 +1000)]
Move priority management entirely into the download strategies

10 years agotorrentfs: Support torrents that don't yet have their metadata
Matt Joiner [Wed, 23 Jul 2014 04:55:38 +0000 (14:55 +1000)]
torrentfs: Support torrents that don't yet have their metadata

10 years agoAbstract the status HTTP server into package util
Matt Joiner [Tue, 22 Jul 2014 15:54:58 +0000 (01:54 +1000)]
Abstract the status HTTP server into package util

10 years agotorrentfs: Match the active torrents to those found in the given directory
Matt Joiner [Tue, 22 Jul 2014 15:54:11 +0000 (01:54 +1000)]
torrentfs: Match the active torrents to those found in the given directory

10 years agoFix missed unlock adding peers to non-existent torrent
Matt Joiner [Tue, 22 Jul 2014 15:51:30 +0000 (01:51 +1000)]
Fix missed unlock adding peers to non-existent torrent

10 years agoFix crash printing client status if DHT isn't enabled
Matt Joiner [Tue, 22 Jul 2014 15:50:49 +0000 (01:50 +1000)]
Fix crash printing client status if DHT isn't enabled

10 years agoImplement "yourip" field of extension protocol handshake
Matt Joiner [Tue, 22 Jul 2014 11:45:12 +0000 (21:45 +1000)]
Implement "yourip" field of extension protocol handshake

10 years agoScript that unblocks unit tests frozen in FUSE
Matt Joiner [Thu, 17 Jul 2014 16:39:09 +0000 (02:39 +1000)]
Script that unblocks unit tests frozen in FUSE

10 years agoFix peer_protocol test
Matt Joiner [Thu, 17 Jul 2014 16:38:32 +0000 (02:38 +1000)]
Fix peer_protocol test

10 years agoPut checks in place for peer addresses with a zero Port
Matt Joiner [Thu, 17 Jul 2014 16:38:11 +0000 (02:38 +1000)]
Put checks in place for peer addresses with a zero Port

10 years agoError in connection.writer goroutine wasn't killing the connection
Matt Joiner [Thu, 17 Jul 2014 16:37:33 +0000 (02:37 +1000)]
Error in connection.writer goroutine wasn't killing the connection

10 years agodht_test: Add commented out test I haven't resolved yet
Matt Joiner [Thu, 17 Jul 2014 06:05:21 +0000 (16:05 +1000)]
dht_test: Add commented out test I haven't resolved yet

10 years agoTODO
Matt Joiner [Thu, 17 Jul 2014 06:04:56 +0000 (16:04 +1000)]
TODO

10 years agoShow piece counts for peers in status page
Matt Joiner [Thu, 17 Jul 2014 06:04:43 +0000 (16:04 +1000)]
Show piece counts for peers in status page

Lets me visually check that connections agree on number of pieces.

10 years agodht: Timeout goroutines waiting for transaction responses
Matt Joiner [Thu, 17 Jul 2014 06:03:59 +0000 (16:03 +1000)]
dht: Timeout goroutines waiting for transaction responses

10 years agoFix goroutine leak for connection.writer
Matt Joiner [Thu, 17 Jul 2014 06:02:30 +0000 (16:02 +1000)]
Fix goroutine leak for connection.writer

10 years agoSquash some more debug messages, fix some other error handling
Matt Joiner [Thu, 17 Jul 2014 06:01:48 +0000 (16:01 +1000)]
Squash some more debug messages, fix some other error handling

10 years agoMissing newline between torrents in client status
Matt Joiner [Thu, 17 Jul 2014 05:58:33 +0000 (15:58 +1000)]
Missing newline between torrents in client status

10 years agoUse low-water mark to populate connection requests
Matt Joiner [Wed, 16 Jul 2014 07:11:45 +0000 (17:11 +1000)]
Use low-water mark to populate connection requests

I can't believe I didn't think of this before. It should address massive
performance problems I've had here.

10 years agoSquash various unhandled DHT messages
Matt Joiner [Wed, 16 Jul 2014 07:10:49 +0000 (17:10 +1000)]
Squash various unhandled DHT messages

10 years agoFix crash when KRPC messages don't contain a valid "t" field
Matt Joiner [Wed, 16 Jul 2014 07:10:17 +0000 (17:10 +1000)]
Fix crash when KRPC messages don't contain a valid "t" field

10 years agoCorrect the connection peer bitfields when the metadata becomes available
Matt Joiner [Wed, 16 Jul 2014 07:09:30 +0000 (17:09 +1000)]
Correct the connection peer bitfields when the metadata becomes available

10 years agoMemory leak because queued peer requests aren't treated yet
Matt Joiner [Wed, 16 Jul 2014 07:08:47 +0000 (17:08 +1000)]
Memory leak because queued peer requests aren't treated yet

10 years agoSquash some unhelpful log messages now that stuff is available in status
Matt Joiner [Wed, 16 Jul 2014 07:08:25 +0000 (17:08 +1000)]
Squash some unhelpful log messages now that stuff is available in status

10 years agoAdd more information I've needed to the status page
Matt Joiner [Wed, 16 Jul 2014 07:07:28 +0000 (17:07 +1000)]
Add more information I've needed to the status page

10 years agoMake the discovery source for a connection more descriptive
Matt Joiner [Wed, 16 Jul 2014 07:06:18 +0000 (17:06 +1000)]
Make the discovery source for a connection more descriptive

10 years agoInvalidating metadata would cause a crash when metadata pieces kept arriving
Matt Joiner [Mon, 14 Jul 2014 13:12:52 +0000 (23:12 +1000)]
Invalidating metadata would cause a crash when metadata pieces kept arriving

10 years agoClient would attempt to download if unchoked before the metadata is available
Matt Joiner [Mon, 14 Jul 2014 13:12:15 +0000 (23:12 +1000)]
Client would attempt to download if unchoked before the metadata is available

10 years agoAPI changes in github.com/anacrolix/libtorgo
Matt Joiner [Sun, 13 Jul 2014 07:37:12 +0000 (17:37 +1000)]
API changes in github.com/anacrolix/libtorgo

10 years agodht: Reply to get_peers and find_node queries
Matt Joiner [Fri, 11 Jul 2014 15:24:01 +0000 (01:24 +1000)]
dht: Reply to get_peers and find_node queries

10 years agocmd/torrent: Run the http server by default
Matt Joiner [Fri, 11 Jul 2014 15:23:10 +0000 (01:23 +1000)]
cmd/torrent: Run the http server by default

10 years agoAdd DHT support to cmd/torrent
Matt Joiner [Fri, 11 Jul 2014 09:30:20 +0000 (19:30 +1000)]
Add DHT support to cmd/torrent

10 years agoRun go vet on everything
Matt Joiner [Wed, 9 Jul 2014 16:59:37 +0000 (02:59 +1000)]
Run go vet on everything

10 years agoFix incorrect log call
Matt Joiner [Wed, 9 Jul 2014 16:53:46 +0000 (02:53 +1000)]
Fix incorrect log call

At least vet catches it...

10 years agoKeep pieces sorted by bytes left
Matt Joiner [Wed, 9 Jul 2014 14:26:58 +0000 (00:26 +1000)]
Keep pieces sorted by bytes left

10 years agoAdd some extra char flags to connection status
Matt Joiner [Wed, 9 Jul 2014 14:16:09 +0000 (00:16 +1000)]
Add some extra char flags to connection status

10 years agodht-get-peers: Some improvements
Matt Joiner [Wed, 9 Jul 2014 14:15:28 +0000 (00:15 +1000)]
dht-get-peers: Some improvements

10 years agotorrent-infohash: utility to print the info hash of a torrent file
Matt Joiner [Wed, 9 Jul 2014 14:15:03 +0000 (00:15 +1000)]
torrent-infohash: utility to print the info hash of a torrent file

10 years agoStart a simpler replacement for davecheney's profile package
Matt Joiner [Wed, 9 Jul 2014 14:14:19 +0000 (00:14 +1000)]
Start a simpler replacement for davecheney's profile package

10 years agodht: Concurrency improvements and fixes to bootstrapping and getting peers
Matt Joiner [Wed, 9 Jul 2014 14:13:54 +0000 (00:13 +1000)]
dht: Concurrency improvements and fixes to bootstrapping and getting peers

10 years agoFix crash quitting when accept conn is closed
Matt Joiner [Thu, 3 Jul 2014 15:44:15 +0000 (01:44 +1000)]
Fix crash quitting when accept conn is closed

10 years agoImplement dht-get-peers command and GetPeers method in dht package
Matt Joiner [Thu, 3 Jul 2014 15:43:04 +0000 (01:43 +1000)]
Implement dht-get-peers command and GetPeers method in dht package

10 years agoMove compactPeers type to util package
Matt Joiner [Thu, 3 Jul 2014 15:41:46 +0000 (01:41 +1000)]
Move compactPeers type to util package

10 years agoFix crash when peer has only sent lower-index HAVE messages
Matt Joiner [Mon, 30 Jun 2014 14:06:58 +0000 (00:06 +1000)]
Fix crash when peer has only sent lower-index HAVE messages

10 years agoImprove some log messages
Matt Joiner [Mon, 30 Jun 2014 14:05:28 +0000 (00:05 +1000)]
Improve some log messages

10 years agoRecord if a connection was incoming
Matt Joiner [Mon, 30 Jun 2014 14:04:28 +0000 (00:04 +1000)]
Record if a connection was incoming

10 years agoA CPU optimization to FillRequests when we know no more can be added
Matt Joiner [Mon, 30 Jun 2014 14:03:07 +0000 (00:03 +1000)]
A CPU optimization to FillRequests when we know no more can be added

10 years agoDisable request heat assertion for now
Matt Joiner [Sun, 29 Jun 2014 14:22:36 +0000 (00:22 +1000)]
Disable request heat assertion for now

Probably want a flag to do intensive checks like this

10 years agoMove download strategies into their own file
Matt Joiner [Sun, 29 Jun 2014 14:22:05 +0000 (00:22 +1000)]
Move download strategies into their own file

10 years agoSome minor tweaks
Matt Joiner [Sun, 29 Jun 2014 09:10:59 +0000 (19:10 +1000)]
Some minor tweaks

10 years agoFix crash writing torrent status before priorities are initialized
Matt Joiner [Sun, 29 Jun 2014 09:08:46 +0000 (19:08 +1000)]
Fix crash writing torrent status before priorities are initialized

10 years agoFix a race where the last piece of a torrent is requested before it's been hashed
Matt Joiner [Sun, 29 Jun 2014 09:08:16 +0000 (19:08 +1000)]
Fix a race where the last piece of a torrent is requested before it's been hashed

10 years agoAdd peers sent over PEX
Matt Joiner [Sun, 29 Jun 2014 09:07:43 +0000 (19:07 +1000)]
Add peers sent over PEX

10 years agoAdd support for extended handshake "v", "reqq", and "p" fields
Matt Joiner [Sun, 29 Jun 2014 08:57:49 +0000 (18:57 +1000)]
Add support for extended handshake "v", "reqq", and "p" fields

10 years agoFix crash printing client status when a torrent info isn't available
Matt Joiner [Sun, 29 Jun 2014 08:56:19 +0000 (18:56 +1000)]
Fix crash printing client status when a torrent info isn't available

10 years agoLog errors setting the metadata for a torrent, and report when metadata is completed...
Matt Joiner [Sun, 29 Jun 2014 05:45:21 +0000 (15:45 +1000)]
Log errors setting the metadata for a torrent, and report when metadata is completed from peers

10 years agoRemove some metadata related debug messages
Matt Joiner [Sun, 29 Jun 2014 05:44:55 +0000 (15:44 +1000)]
Remove some metadata related debug messages

10 years agoCan now download from magnet links
Matt Joiner [Sat, 28 Jun 2014 09:38:31 +0000 (19:38 +1000)]
Can now download from magnet links

10 years agoFixes for cmd/torrent with the new torrent.Info field
Matt Joiner [Fri, 27 Jun 2014 08:57:35 +0000 (18:57 +1000)]
Fixes for cmd/torrent with the new torrent.Info field

10 years agoBegin adding magnet and ut_metadata support
Matt Joiner [Thu, 26 Jun 2014 14:57:07 +0000 (00:57 +1000)]
Begin adding magnet and ut_metadata support

10 years agoTrivial fix for one of the last commits
Matt Joiner [Thu, 26 Jun 2014 08:08:14 +0000 (18:08 +1000)]
Trivial fix for one of the last commits

10 years agoVarious improvements that've had a lot of testing
Matt Joiner [Thu, 26 Jun 2014 08:06:33 +0000 (18:06 +1000)]
Various improvements that've had a lot of testing

10 years agoFix broken connection write optimizer test
Matt Joiner [Thu, 26 Jun 2014 07:30:54 +0000 (17:30 +1000)]
Fix broken connection write optimizer test

10 years agovet some printfs
Matt Joiner [Thu, 26 Jun 2014 07:30:16 +0000 (17:30 +1000)]
vet some printfs

10 years agotorrentfs: Write client status to HTTP port
Matt Joiner [Thu, 26 Jun 2014 07:29:12 +0000 (17:29 +1000)]
torrentfs: Write client status to HTTP port

10 years agocmd/torrentfs: Expose readahead bytes as a flag
Matt Joiner [Wed, 25 Jun 2014 15:37:00 +0000 (01:37 +1000)]
cmd/torrentfs: Expose readahead bytes as a flag

10 years agotorrentfs: Reading an offset past the end of a file caused out of bounds panic
Matt Joiner [Wed, 25 Jun 2014 15:36:25 +0000 (01:36 +1000)]
torrentfs: Reading an offset past the end of a file caused out of bounds panic

10 years agoBegin implementing a K closest node algorithm
Matt Joiner [Tue, 24 Jun 2014 13:20:49 +0000 (23:20 +1000)]
Begin implementing a K closest node algorithm

10 years agoSome function doc
Matt Joiner [Tue, 24 Jun 2014 13:20:07 +0000 (23:20 +1000)]
Some function doc

10 years agoWrap server UDP sends to ensure the node last send is updated
Matt Joiner [Tue, 24 Jun 2014 13:19:19 +0000 (23:19 +1000)]
Wrap server UDP sends to ensure the node last send is updated

10 years agoDHT default server ID generated using hostname and server address
Matt Joiner [Tue, 24 Jun 2014 13:18:30 +0000 (23:18 +1000)]
DHT default server ID generated using hostname and server address

10 years agoDHT node table should be loaded after the server is initialized
Matt Joiner [Tue, 24 Jun 2014 13:17:06 +0000 (23:17 +1000)]
DHT node table should be loaded after the server is initialized

10 years agoudp_tracker: If a read deadline occurs, writes were failing with i/o timeout
Matt Joiner [Mon, 23 Jun 2014 10:30:31 +0000 (20:30 +1000)]
udp_tracker: If a read deadline occurs, writes were failing with i/o timeout

10 years agoReorder actions after a chunk is received
Matt Joiner [Wed, 28 May 2014 16:44:27 +0000 (02:44 +1000)]
Reorder actions after a chunk is received

10 years agoShuffle chunk spec request order for readahead pieces
Matt Joiner [Wed, 28 May 2014 15:32:34 +0000 (01:32 +1000)]
Shuffle chunk spec request order for readahead pieces

Should reduce overlap in received chunks.

10 years agoMake the readahead on ResponsiveDownloadStrategy customizable
Matt Joiner [Wed, 28 May 2014 15:30:59 +0000 (01:30 +1000)]
Make the readahead on ResponsiveDownloadStrategy customizable

10 years agoRemove requests from the outbound message queue if cancelled before they're written
Matt Joiner [Wed, 28 May 2014 15:27:48 +0000 (01:27 +1000)]
Remove requests from the outbound message queue if cancelled before they're written

Only post peer protocol messages to the channel, bytes must be done directly.
This fixes a possible issue where slow responses during handshake could cause
keep alive messages to be sent prematurely.

10 years agoKeepalives weren't marshalled correctly
Matt Joiner [Wed, 28 May 2014 15:22:51 +0000 (01:22 +1000)]
Keepalives weren't marshalled correctly

10 years agoGot dht-server working nicely
Matt Joiner [Tue, 27 May 2014 06:28:56 +0000 (16:28 +1000)]
Got dht-server working nicely

10 years agodht-server: Save and load node table between invocations
Matt Joiner [Sun, 25 May 2014 13:04:55 +0000 (23:04 +1000)]
dht-server: Save and load node table between invocations

10 years agoSwitch dht-server to bootstrapping
Matt Joiner [Sun, 25 May 2014 11:34:29 +0000 (21:34 +1000)]
Switch dht-server to bootstrapping