Commit Graph

218 Commits

Author SHA1 Message Date
Kovid Goyal
85005eee1b receive kitten: Send signature in 4KB blocks 2023-08-10 11:10:55 +05:30
Kovid Goyal
47af65dc5c Ensure transmit next chunk is called 2023-08-10 07:51:13 +05:30
Kovid Goyal
4f72bb9894 Replace utils.Once with stdlib sync.OnceValue 2023-08-09 12:08:42 +05:30
Kovid Goyal
f125ffe3e0 Fix a hang in the send kitten when transmitting deltas of multiple files
and the files have not changed causing the signature of the second file
to arrive after the delta for the first file is transmitted
2023-08-09 08:25:18 +05:30
Kovid Goyal
12bdc0cc0c ... 2023-08-08 17:51:02 +05:30
Kovid Goyal
a628609ca8 Fix incorrect ETA calculation for active file 2023-08-08 17:45:28 +05:30
Kovid Goyal
1c251e5a53 More fixes for send kitten 2023-08-08 17:26:16 +05:30
Kovid Goyal
0e87e0c7de Work on refactoring send kitten to fix various issues 2023-08-08 06:28:43 +05:30
Kovid Goyal
95c7934152 Use an atomic update for erase + draw not only draw 2023-08-07 13:55:22 +05:30
Kovid Goyal
6c7a8f8fa9 Ensure usage of __attribute__(cleanup) never frees un-initialized memory
Use macros that take an initializer parameter to, thereby ensuring the
variable to be cleaned up is always initialized.
2023-08-07 12:24:18 +05:30
Kovid Goyal
b34a479080 Fix multiple finish cmds at end of send
Also improve queuing of chunks
2023-08-05 13:59:07 +05:30
Kovid Goyal
341d845b9a Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal
1c094a3b53 Cleanup user docs for transfer kitten 2023-07-30 19:49:47 +05:30
Kovid Goyal
c11d1d3430 Add more integration testing for the transfer kitten 2023-07-30 19:49:47 +05:30
Kovid Goyal
47913a7c1f Tests for normal mode home dir expansion 2023-07-30 19:49:47 +05:30
Kovid Goyal
995c447435 Get the multi file tests working for the receive kitten 2023-07-30 19:49:47 +05:30
Kovid Goyal
e4986c489e Ignore EINTR 2023-07-30 19:49:47 +05:30
Kovid Goyal
ce593dbb5f lp.Println() should act live fmt.Println()
also use a dedicated error type for signalining perm denied
2023-07-30 19:49:47 +05:30
Kovid Goyal
d2d91401af Fix the tree walker 2023-07-30 19:49:47 +05:30
Kovid Goyal
bd231eaf39 Fix local base being ignored in make_tree 2023-07-30 19:49:47 +05:30
Kovid Goyal
141edb975e Misc fixes 2023-07-30 19:49:47 +05:30
Kovid Goyal
fd691b7835 Fix panic on making tree 2023-07-30 19:49:47 +05:30
Kovid Goyal
2cae0ab695 Dont wait for cancel response when user denies permission 2023-07-30 19:49:46 +05:30
Kovid Goyal
d718ab6edf cleanup close file error handling 2023-07-30 19:49:46 +05:30
Kovid Goyal
0cb753e6d3 ... 2023-07-30 19:49:46 +05:30
Kovid Goyal
aad1ab3fd9 DRYer 2023-07-30 19:49:46 +05:30
Kovid Goyal
b60d15fe75 Make short duration formatter re-useable 2023-07-30 19:49:46 +05:30
Kovid Goyal
9694bd03d8 ... 2023-07-30 19:49:46 +05:30
Kovid Goyal
44190c4220 Fix render_duration() 2023-07-30 19:49:46 +05:30
Kovid Goyal
fd68372def DRYer 2023-07-30 19:49:46 +05:30
Kovid Goyal
d0490672e1 Fix block range coalescing not working in algorithm.c 2023-07-30 19:49:46 +05:30
Kovid Goyal
f509c470e2 Clean up error handling 2023-07-30 19:49:46 +05:30
Kovid Goyal
ea5ed42633 ... 2023-07-30 19:49:46 +05:30
Kovid Goyal
218df45a78 ... 2023-07-30 19:49:46 +05:30
Kovid Goyal
ecf451dd56 Dont ignore close error 2023-07-30 19:49:45 +05:30
Kovid Goyal
50b146bb04 More work on receive kitten 2023-07-30 19:49:45 +05:30
Kovid Goyal
42c9f30618 Change receive code to use new streaming decomp infra 2023-07-30 19:49:45 +05:30
Kovid Goyal
87051edf55 ... 2023-07-30 19:49:45 +05:30
Kovid Goyal
2d5c1e205d DRYer 2023-07-30 19:49:45 +05:30
Kovid Goyal
dea9133e7a ... 2023-07-30 19:49:45 +05:30
Kovid Goyal
6b5520f07a More work on porting the receive kitten 2023-07-30 19:49:45 +05:30
Kovid Goyal
14c29f2cf5 More work on porting receive kitten 2023-07-30 19:49:45 +05:30
Kovid Goyal
15205be67b More work on porting receive kitten 2023-07-30 19:49:45 +05:30
Kovid Goyal
3d5fdad029 More work on porting receive kitten 2023-07-30 19:49:44 +05:30
Kovid Goyal
73ee5b32c9 A better way to wrap go's zlib into a streaming decompressor 2023-07-30 19:49:44 +05:30
Kovid Goyal
75a5d88bc2 ... 2023-07-30 19:49:44 +05:30
Kovid Goyal
a750e18700 More work on porting the recieve transfer kitten 2023-07-30 19:49:44 +05:30
Kovid Goyal
732cbcea86 Start work on porting receive code to Go 2023-07-30 19:49:44 +05:30
Kovid Goyal
bf9b139960 ... 2023-07-30 19:49:44 +05:30
Kovid Goyal
350094ed9f Some docs for the transfer kitten --help 2023-07-30 19:49:44 +05:30