Matt Joiner
493916c279
Rename Torrent.connHasWantedPieces->connection.peerHasWantedPieces
2017-08-18 01:48:19 +10:00
Matt Joiner
4adee001f7
No longer wanting a piece wasn't triggering an update of connection request state
...
Pretty minor, but it would leave connections hanging in the interested state.
2017-08-18 01:44:20 +10:00
Matt Joiner
11aabc5a85
Tidy the next announce tracker status field
2017-08-17 01:18:18 +10:00
Matt Joiner
e34681d5d5
Accept racy result in keep alive test
2017-08-16 17:05:34 +10:00
Matt Joiner
170bb72c34
Augment dialed connection timeouts with context.Context
...
Works toward a dial timeout for half open connections. https://github.com/anacrolix/torrent/issues/169
2017-08-16 17:05:05 +10:00
Matt Joiner
9bec8f6a95
Use net.Dialer for TCP
2017-08-16 15:48:30 +10:00
Matt Joiner
8317417910
Use DialContext instead of DialTimeout with utp
2017-08-16 15:35:17 +10:00
Matt Joiner
2d59d48015
Some tidying in Client.dialFirst
2017-08-16 10:32:25 +10:00
Matt Joiner
74f845af4e
Remove dht-ping from the README
2017-08-16 10:28:07 +10:00
Matt Joiner
5099d8e33f
DHT bootstrap is not asynchronous
2017-08-10 11:18:48 +10:00
Matt Joiner
c0dd0f63a1
Fix test
2017-08-07 22:11:25 +10:00
Matt Joiner
bbd63962ba
Merge branch 'master' into dht-cleanup
2017-08-07 17:59:49 +10:00
Matt Joiner
f7d82e0bc7
Remove dht cmds, they're added to anacrolix/dht
2017-07-21 00:41:12 +10:00
Matt Joiner
2624281842
Changes for dht-cleanup
2017-07-21 00:40:49 +10:00
Matt Joiner
99b3f98e3e
Remove dht cmds, they're added to anacrolix/dht
2017-07-21 00:39:28 +10:00
Matt Joiner
95c89e96ba
Merge pull request #167 from mlmhl/mmap
...
bug fix: initial infoHash for mmapStoragePiece
2017-07-11 23:16:52 +10:00
mlmhl
edcb9deb95
bug fix: initial infoHash for mmapStoragePiece
2017-07-10 19:33:39 +08:00
Matt Joiner
cd20c2df36
Fix handling of infohash as hex in Torrent.String
2017-07-01 16:02:06 +10:00
Matt Joiner
824441efa0
Move logging inside client lock, for Torrent.String
...
Fixes #163
2017-07-01 16:01:38 +10:00
Matt Joiner
73b45079b3
Merge pull request #165 from mlmhl/dht
...
Do not add nodes if dht is disabled
2017-06-29 19:33:04 +10:00
mlmhl
6286c11bed
Do not add nodes if dht is disabled
2017-06-29 14:28:07 +08:00
Matt Joiner
ae8b03d586
Use go-libutp if cgo is enabled
2017-06-16 18:08:24 +10:00
Matt Joiner
cc17c8a54c
metainfo URL list can be a string or list
2017-06-16 17:07:30 +10:00
Matt Joiner
582d749f69
iplist: Add TODO to allow unmapping
2017-06-11 20:09:40 +10:00
Matt Joiner
ac0af8e3f6
Merge pull request #161 from mlmhl/event
...
signal an event when torrent closed
2017-06-05 20:47:58 +10:00
mlmhl
a3d231cb92
signal an event when torrent closed
2017-06-05 08:46:50 +08:00
Matt Joiner
77e81061f5
Merge pull request #159 from elgatito/helpers_add
...
added few helper functions
2017-06-02 17:04:01 +10:00
Denis Kuzmenok
8cae956528
added few helper functions: t.PieceBytesMissing, r.CurrentPos, r.SetNonResponsive
2017-06-02 07:46:28 +03:00
Matt Joiner
49648b9ae1
Close implicit Client default storage on Client.Close
...
Fixes #158
2017-06-01 22:57:08 +10:00
Matt Joiner
54764254f4
Skip on fusermount failure
2017-06-01 15:39:44 +10:00
Matt Joiner
c2f77fc84a
Make bolt completion DB directory if necessary
2017-06-01 11:20:50 +10:00
Matt Joiner
714a72cdd4
Tighten FUSE test skipping
2017-06-01 11:19:45 +10:00
Matt Joiner
296ef76c36
Tidy up the duplicate conn selection code
2017-05-26 13:00:28 +10:00
Matt Joiner
43a573d46f
Move File.State lock to top of function
2017-05-26 13:00:28 +10:00
Matt Joiner
5bde8de95d
perf.Timer.Stop renamed
2017-05-26 13:00:28 +10:00
Matt Joiner
40289e12c5
Merge pull request #156 from mlmhl/completion
...
make completion configurable
2017-05-25 16:39:03 +10:00
mlmhl
d8c7f37d2b
make pieceCompletion configurable
2017-05-22 10:23:37 +08:00
Matt Joiner
8df5221fc8
Merge pull request #154 from mlmhl/connection
...
bug fix: race condition between outgoing connection and incoming conn…
2017-05-17 19:22:14 +10:00
luffyma(马林)
d8023a5e39
bug fix: race condition between outgoing connection and incoming connection
2017-05-10 18:31:19 +08:00
Matt Joiner
58a24196ce
Merge pull request #153 from joelanford/master
...
Add public methods for torrent peer counts
2017-04-25 10:39:44 +10:00
Joe Lanford
0d19c72ea5
Added peer count stats to TorrentStats struct
2017-04-22 23:29:10 -04:00
Matt Joiner
40b96d0e4e
Avoid allocating skeys for receiving encrypted handshakes
2017-04-04 18:41:08 +10:00
Matt Joiner
65a7c3daa7
storage: Fix race condition in mapPieceCompletion
2017-03-30 21:38:44 +11:00
Matt Joiner
78a8db10da
sortimports
2017-03-19 17:04:32 +11:00
Matt Joiner
9bd463ffc0
storage: Add package doc
2017-03-18 13:03:02 +11:00
Matt Joiner
2f6744c7ac
Merge pull request #149 from thechriswalker/torrent-storage-options
...
fix `Spec.Storage` and allow per-torrent dir
2017-03-17 21:30:28 +11:00
Chris Walker
9d96cd659f
fix `Spec.Storage` and allow per-torrent dir
...
`TorrentSpec.Storage` was not honored when calling `Client.AddTorrentSpec`
and the configured `cfg.DefaultStorage` was always used. Now if you construct
your `TorrentSpec` you can specify any `StorageImpl`
Also, the most common use case for custom storage being per-torrent paths for
FileStorage, this adds a `pathMaker` function to the File implementation that
allows customization, along with the default (always use base path) and my use
case (which seemed common enough from the Gitter chat) which is infohash based
subdirectories.
All Public methods have not changed signature, but 1 private method did, hence
the test update.
2017-03-16 14:40:21 +00:00
Matt Joiner
ba3e798b5f
Fix a logging of metainfo.Hash
2017-02-24 21:56:23 +11:00
Matt Joiner
aa74d992d3
Don’t track the empty string, and ditch Torrent.announceList
2017-02-19 15:57:30 +11:00
Matt Joiner
350dd01ab9
Fix torrent status info hash hex
2017-02-16 20:10:32 +11:00