This commit is contained in:
Joey Hess 2021-02-10 21:49:25 -04:00
parent e3832af5d5
commit cb7bb3e4b9
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
[[!comment format=mdwn
username="joey"
subject="""re: comment 9"""
date="2021-02-11T01:33:47Z"
content="""
Not a bad idea, yoh!
It could be taken further: Keep reading from the file as it grows and hash
incrementally. Use inotify to know when more has been written, or poll
periodically or when PROGRESS is received. If the hash is wrong at the end,
rehash the file. Only remotes that write chunks out of order would pay a
time penalty for that extra hashing.
That could be enabled by a protocol extension. Or disabled by a protocol
extension for that matter, since remotes that write out of order are
probably rare.
"""]]

View file

@ -1,6 +1,6 @@
[[!comment format=mdwn
username="joey"
subject="""comment 9"""
subject="""update"""
date="2021-02-10T16:42:46Z"
content="""
Incremental hashing implemented for transfers over ssh and tor.