librsync actually blocks on output buffer size as well as input availability. So handle that

This commit is contained in:
Kovid Goyal
2021-10-02 09:26:35 +05:30
parent f85f39e662
commit 5729e33412
4 changed files with 80 additions and 67 deletions

View File

@@ -392,8 +392,9 @@ class SendManager:
return
sl = file.signature_loader
assert sl is not None
sl(ftc.data)
sl.add_chunk(ftc.data)
if ftc.action is Action.end_data:
sl.commit()
file.start_delta_calculation()
self.update_collective_statuses()