Commit graph

29151 commits

Author SHA1 Message Date
Joey Hess
43e7044b43
comment 2016-12-08 17:10:24 -04:00
Joey Hess
0288e934cc
update instructions to work better 2016-12-08 16:55:40 -04:00
Joey Hess
b8fea9f08d
we have a memory leak 2016-12-08 16:35:33 -04:00
Joey Hess
d8f1a0d95c
move byteable to main dep list
Only the webapp had pulled it in, but the authtoken code uses it now.
2016-12-08 16:31:08 -04:00
Joey Hess
2ad06ded7e
force sofar calculation
This could avoid a memory leak. It would only happen when
the meter didn't look at sofar.
2016-12-08 16:28:07 -04:00
Joey Hess
c6972cb914
better format error 2016-12-08 16:02:26 -04:00
Joey Hess
39b7eb7350
update 2016-12-08 16:00:29 -04:00
Joey Hess
23438fb80f
move to debug 2016-12-08 15:56:36 -04:00
Joey Hess
af41519126
convert P2P runners from Maybe to Either String
So we get some useful error messages when things fail.

This commit was sponsored by Peter Hogg on Patreon.
2016-12-08 15:47:49 -04:00
Joey Hess
c05f4eb631
fix laziness problem in git relaying
The switch to hGetMetered subtly changed the laziness of how DATA was
read, and broke git protocol relaying. Fix by sending received data to
the git process's stdin immediately, which ensures that the lazy
bytestring is all read from the peer before going on to process the next
message from the peer.
2016-12-08 15:15:29 -04:00
Joey Hess
e56506d83c
include error message when unable to connect to peer 2016-12-08 14:14:08 -04:00
Joey Hess
b613ccf7a3
update 2016-12-08 13:58:11 -04:00
Joey Hess
df67626cb7
fix build with old ghc 2016-12-08 13:58:03 -04:00
Joey Hess
44c55e2441
fix links 2016-12-07 16:11:30 -04:00
Joey Hess
0766d032bf
link to git-annex-metadata-gui 2016-12-07 16:09:30 -04:00
Joey Hess
8e5f8d91c5
add git-annex-adaptor 2016-12-07 16:06:56 -04:00
Joey Hess
62043df289
git-annex-metadata-gui yay! 2016-12-07 16:00:12 -04:00
Joey Hess
ed6a5bc271
devblog 2016-12-07 15:50:54 -04:00
Joey Hess
138f618002
todo 2016-12-07 15:49:15 -04:00
Joey Hess
46cbd65808
add page for tor special remote 2016-12-07 15:44:52 -04:00
Joey Hess
e5476d42ce
update 2016-12-07 15:38:37 -04:00
Joey Hess
0541f19bea
fix math error that caused resumes to always fail 2016-12-07 15:36:39 -04:00
Joey Hess
db79b69aa0
ReadWriteMode not AppendMode
AppendMode does not allow seeking..
2016-12-07 15:24:28 -04:00
Joey Hess
76b46afed1
add section on tor speed 2016-12-07 15:21:38 -04:00
Joey Hess
99c36f318c
open file for append, not write, so resuming works
WriteMode zeros any existing content, so the seek filled with zeros, and
verification failed after download.
2016-12-07 15:06:07 -04:00
Joey Hess
b55399e3ac
offset meters when resuming 2016-12-07 14:52:10 -04:00
Joey Hess
5ff85c8515
todo 2016-12-07 14:46:27 -04:00
Joey Hess
2fb6fd7434
Merge branch 'master' into tor 2016-12-07 14:32:25 -04:00
Joey Hess
ad5ef51040
more p2p progress meters
Display progress meter on send and receive from remote.

Added a new hGetMetered that can read an exact number of bytes (or
less), updating a meter as it goes.

This commit was sponsored by Andreas on Patreon.
2016-12-07 14:25:01 -04:00
Joey Hess
f3a3dc14ec
add section on security 2016-12-07 13:58:10 -04:00
Joey Hess
83ea1cec86
update progress meter when sending to p2p remote
This commit was sponsored by Thom May on Patreon.
2016-12-07 13:37:35 -04:00
Joey Hess
7c245b2180
update 2016-12-07 12:48:24 -04:00
Joey Hess
757d36f8ca
validate peer uuid each time we talk to it
In case the repo on the peer changes uuid (eg by a new repo being moved
into place).

Also, added some warning messages when unable to communicate with a
peer.

This commit was sponsored by Anthony DeRobertis on Patreon.
2016-12-07 12:39:28 -04:00
Joey Hess
0d9a11625c
remote uuid discovery in p2p --link
This also tests that we can connect to the peer.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2016-12-07 12:38:21 -04:00
Joey Hess
729e864ad0
add todo list for remaining tor stuff 2016-12-07 12:11:38 -04:00
Joey Hess
528c7bee24
fix up some commands 2016-12-07 12:00:27 -04:00
Joey Hess
f2354ddef5
devbog 2016-12-06 17:08:39 -04:00
Joey Hess
60f4b1cf36
PAKE 2016-12-06 16:55:53 -04:00
Joey Hess
bb5168e894
need to auth with the peer 2016-12-06 15:50:02 -04:00
Joey Hess
f744bd5391
refactor 2016-12-06 15:43:03 -04:00
Joey Hess
26a53fb4a5
finish implementation of Remote.P2P (untested)
Not tested at all, but it just might work.
Only known problem is that progress is not updated when storing to a P2P
remote.

This commit was sponsored by Nick Daly on Patreon.
2016-12-06 15:09:04 -04:00
Joey Hess
2bd2e0880c
added StoreContentTo
This is needed in addition to StoreContent, because retrieveKeyFile can
be used to retrieve to different destination files, not only the tmp
file for a key.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2016-12-06 15:05:44 -04:00
Joey Hess
b29088b8dc
stub Remote.P2P
Similar to GCrypt remotes, P2P remotes have an url, so Remote.Git has to
separate them out and handle them, passing off to Remote.P2P.

This commit was sponsored by Ignacio on Patreon.
2016-12-06 12:27:58 -04:00
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730
7a91c4952b 2016-12-06 14:59:40 +00:00
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730
3dc64fe867 2016-12-06 13:56:13 +00:00
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730
89ff5bece0 2016-12-06 13:03:51 +00:00
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730
b8e27383fd 2016-12-06 13:01:51 +00:00
alpernebbi
7222ed2b20 2016-12-05 21:55:55 +00:00
alpernebbi
0e1c2ff1a4 Added a comment: UTF-8 problems in some other commands 2016-12-05 20:46:07 +00:00
alpernebbi
3e0176054b 2016-12-05 19:34:55 +00:00