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 |
Matt Joiner
|
b2d2c524c6
|
Fix sync.Mutex copy by value
Found by go vet, per https://github.com/anacrolix/torrent/issues/179.
|
2017-08-25 16:36:34 +10:00 |
Matt Joiner
|
401974dd8d
|
dht.ServerConfig.StartingNodes is now a function
Additionally cmd/torrentfs uses the global bootstrap nodes for its DHT. Aids with https://github.com/anacrolix/torrent/issues/180
|
2017-08-25 16:28:27 +10:00 |
Matt Joiner
|
89f39b0b09
|
Add some debugging routes and envpprof to cmd/magnet-metainfo
https://github.com/anacrolix/torrent/issues/178
|
2017-08-18 11:14:57 +10:00 |
Matt Joiner
|
97cb41a5c9
|
Provide default starting nodes to DHT if default torrent client config is used
https://github.com/anacrolix/torrent/issues/178
|
2017-08-18 11:14:28 +10:00 |
Matt Joiner
|
76c60ffa77
|
Try a state-delta function for updating request state
Also adds Torrent.networkingEnabled, though it isn't yet useful.
|
2017-08-18 01:51:02 +10:00 |
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 |