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
Matt Joiner
6ca3275752
metainfo: Improve MetaInfo.AnnounceList handling
2017-02-15 20:05:28 +11:00
Matt Joiner
a959bdd0f8
Revert "Quick fix for missing MetaInfo.Announce everywhere with trackers"
...
This reverts commit b7a8d08bbf
.
2017-02-15 18:40:30 +11:00
Matt Joiner
415fdcb982
Update README.md
...
Add CircleCI shield
2017-02-14 22:42:21 +11:00
Matt Joiner
b7a8d08bbf
Quick fix for missing MetaInfo.Announce everywhere with trackers
2017-02-13 22:28:42 +11:00
Matt Joiner
b868a6b9e2
dht.Server.Announce now takes [20]byte
2017-02-07 15:01:02 +11:00
Matt Joiner
79d800fe92
Trivial logging, comment, Stringer changes
2017-02-02 16:53:19 +11:00
Matt Joiner
1d54b1c6d8
Massively reduce CPU when Readers are blocked on unavailable data
2017-02-01 16:28:16 +11:00
Matt Joiner
c66c4d1744
Change type of metainfo.Info.URLList
2017-01-18 12:10:13 +11:00
Matt Joiner
902e40dd67
TODO
2017-01-18 12:09:51 +11:00
Matt Joiner
a11df82349
package itertools API changed
2017-01-14 20:39:48 +11:00
Matt Joiner
5bd6868cc8
Update README
2017-01-12 21:50:01 +11:00
Matt Joiner
1c37903a74
Remove FileStorePieces storage backend
...
ResourcePIeces is now preferred.
2017-01-05 17:00:59 +11:00
Matt Joiner
1e033d5f91
sortimports
2017-01-05 17:00:16 +11:00
Matt Joiner
55b6025f80
Log the storage TorrentImpl type
2017-01-04 18:15:49 +11:00
Matt Joiner
5fe36bbb35
Show connection piece request order in text status
2017-01-04 18:09:50 +11:00
Matt Joiner
03227bf461
metainfo: FileInfo.Offset failed with single-file torrents
2017-01-04 18:09:17 +11:00
Matt Joiner
174cc0e183
Reduce the priority given to earlier pieces. Maximum priority reads at the end of the file aren’t getting enough attention.
2017-01-04 18:08:29 +11:00
Matt Joiner
51bae0a3c8
metainfo: Add helper methods to FileInfo
2017-01-04 17:15:11 +11:00
Matt Joiner
984a69c73a
Merge pull request #144 from BonkaBonka/fastfail
...
Abort verify at first hash mismatch.
2017-01-04 14:42:59 +11:00
BonkaBonka
25990f44ee
Abort verify at first hash mismatch.
2017-01-03 21:44:19 -05:00
Matt Joiner
9cf09dba8a
Remove unused funcs and idents
2017-01-01 11:03:02 +11:00
Matt Joiner
186b5073d2
Move method queuePieceCheck
2017-01-01 11:02:37 +11:00
Matt Joiner
d48c7c8e36
sort imports
2017-01-01 11:01:41 +11:00
Matt Joiner
65295eb513
Panic if NewHashFromHex gets a bad string
2017-01-01 10:08:45 +11:00
Matt Joiner
d8ca4ac92a
Rewrite cmd/torrent-verify
...
Fixes #141
2017-01-01 10:08:45 +11:00