Commit Graph

1651 Commits

Author SHA1 Message Date
Matt Joiner 846ac2d33e Herp 2017-09-15 12:56:54 +10:00
Matt Joiner d4576a56d9 Add some expvars to track uTP/TCP and PHE fallbacks for outgoing connections 2017-09-15 12:56:15 +10:00
Matt Joiner 7fdc750166 mse: Make plaintext mode the default when protocol header encryption is in use 2017-09-15 12:54:29 +10:00
Matt Joiner 5d3ee0a531 Fix panic when error occurs binding uTP socket
Fixes #187.
2017-09-14 00:25:29 +10:00
Matt Joiner 881f1a7e35 Support plaintext crypto method for protocol header encryption 2017-09-13 18:20:20 +10:00
Matt Joiner 29e06fb83c mse: Support plaintext crypto mode 2017-09-13 16:19:14 +10:00
Matt Joiner 11165d4fa5 mse: Error if initial payload exceeds maximum size 2017-09-13 16:18:15 +10:00
Matt Joiner 7e056f7753 mse: Reuse writer write buffer 2017-09-13 01:00:43 +10:00
Matt Joiner f1d292203e mse: Add a read/write benchmark 2017-09-13 00:58:54 +10:00
Bora M. Alper f87b732959 added the initial version of the (t *Torrent) KnownSwarm() function 2017-09-12 15:22:53 +01:00
Matt Joiner 260806a6f2 peer_protocol: Improve piece decoding benchmark 2017-09-12 21:32:01 +10:00
Matt Joiner 01fee38709 peer_protocol: Add a benchmark for decoding pieces 2017-09-12 21:12:56 +10:00
Matt Joiner 98eac5343e mse: Remove unused function 2017-09-12 19:30:05 +10:00
Matt Joiner 16433297d7 Merge branch 'master' into pull-writer 2017-09-12 18:32:40 +10:00
Matt Joiner cee24fe21b storage: Add TODO about handling Close errors 2017-09-12 18:31:56 +10:00
Matt Joiner 2b01d2976b README: Improve wording around torrent as a library 2017-09-12 18:31:56 +10:00
Matt Joiner e25cfdf6b2 The bencode README is markdown 2017-09-12 18:31:56 +10:00
Matt Joiner 76a81b5e54 Merge pull request #185 from mh-cbon/patch-1
Update README
2017-09-12 18:28:35 +10:00
Matt Joiner 128b331b48 Remove mention of the mobile branch from README 2017-09-12 18:26:14 +10:00
mh-cbon 54a3090f7e Update README 2017-09-05 16:42:37 +02:00
Matt Joiner 4e8f6b8e5b Optimize nextRequestState to return cancel and new requests, and reinstate requestsLowWater 2017-09-02 10:36:43 +10:00
Matt Joiner bad6f07f5e Wrap writerCond in tickleWriter and be more selective about using it 2017-09-01 15:26:50 +10:00
Matt Joiner 705de83a5a TestUTPRawConn: More tidying, and slow down the rate 2017-09-01 15:22:08 +10:00
Matt Joiner 158dab71c9 Use require in some places in TestUTPRawConn 2017-09-01 15:09:10 +10:00
Matt Joiner 110764480e Avoid triggering writer cond where possible 2017-09-01 12:09:41 +10:00
Matt Joiner 361cdc0e08 Track buffered but not posted messages, and unify the expvar names for those counters 2017-09-01 10:53:59 +10:00
Matt Joiner e3479b0bb3 Remove unused code 2017-09-01 10:46:26 +10:00
Matt Joiner d934ec7e30 Add some variables to track fillBuffer effectiveness 2017-09-01 10:36:43 +10:00
Matt Joiner 016b238cc5 cmd/torrent: Enhance debugging 2017-09-01 10:35:40 +10:00
Matt Joiner 13e79039f2 Generate requests, cancels and interest state in the connection writer 2017-08-31 23:48:52 +10:00
Matt Joiner 986b9093a0 Make connection.writer pull from a buffer 2017-08-31 16:26:45 +10:00
Matt Joiner c4f5a49c97 Panics while decoding messages in connection.mainLoopRead would trigger more panics 2017-08-31 16:25:49 +10:00
Matt Joiner cf022be396 Keep rate limited reader reads to within the burst capacity 2017-08-31 14:32:22 +10:00
Matt Joiner 3eb422afd0 Add peer_protocol.Message.MustMarshalBinary 2017-08-31 14:30:53 +10:00
Matt Joiner 0388ec1eee Synchronize Torrent.Info 2017-08-29 15:16:53 +10:00
Matt Joiner 53954f7807 Get torrentfs fuse test working 2017-08-29 14:02:30 +10:00
Matt Joiner 756375879b cmd/torrent: Include global dht starting nodes 2017-08-28 20:54:37 +10:00
Matt Joiner 6794ace27c Merge branch 'fs-handle-reader' 2017-08-28 17:28:05 +10:00
Matt Joiner 2454120af8 Try to reduce allocations in cipherReader 2017-08-28 17:27:53 +10:00
Matt Joiner 7d55f573f5 Maintain a torrent.Reader for each file handle
This means that readahead will work much better. Addresses https://github.com/anacrolix/torrent/issues/182.
2017-08-28 01:42:02 +10:00
Matt Joiner 58d66a1b62 fs: Move file Read behaviour onto a new handle type 2017-08-27 14:19:58 +10:00
Matt Joiner afb83e792b fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn't found 2017-08-27 14:03:10 +10:00
Matt Joiner 52741c2671 TestUnmountWedged: Don't deadlock if the Read fails 2017-08-27 14:00:37 +10:00
Matt Joiner 4ffcd9f1ce cmd/torrentfs: Switch to tagflag and rename -torrentPath->-metainfoDir 2017-08-27 12:25:51 +10:00
Matt Joiner 6268fa0b54 cmd/magnet-metainfo: Use tagflag 2017-08-27 11:46:06 +10:00
Matt Joiner 054ff25f7c Add CircleCI 2.0 turd
Adds tests for https://github.com/anacrolix/utp/issues/24, and mobile on the master branch. The UDP tracker test uses udp4 because of some bad behaviour on CircleCI.
2017-08-27 02:10:17 +10:00
Matt Joiner eb32bb821a fs: Add a test script 2017-08-26 13:25:27 +10:00
Matt Joiner 625cca3b6f fs: Move fileNode stuff into its own file 2017-08-26 13:25:04 +10:00
Matt Joiner a8a1ea755d Remove unused functions 2017-08-26 13:23:04 +10:00
Matt Joiner dfb7f5b00c Make cmd/tracker-announce output a bit easier to consume 2017-08-26 12:38:08 +10:00