Commit Graph
7 Commits
Author SHA1 Message Date
eric b3e7248ac5 Add --log/--remote-log diagnostic tracing for stalled transfers
Adds an optional timestamped trace of transfer-relevant events (tail
position vs. file length, rename detection, finalize, protocol
send/recv) to both the client and server sides, so a stalled transfer
can be diagnosed from correlated local/remote logs instead of guessing.

Notably logs when a source's final size ends up smaller than what was
already read (pos > current_len after rename) -- this can never
satisfy the pos == current_len finalize condition, which is a real
deadlock risk for writers that preallocate a fixed-size file and
truncate down to the actual capture length before renaming.

--log <path> on either the client or `--server` process traces that
process's own events. --log on ClientCli is local-only; --remote-log
<path> is forwarded as the spawned --server process's --log so both
sides of a remote transfer leave a trace, tied together by timestamp.
2026-08-27 17:06:00 -04:00
eric 17e9e5e361 Drop unrecognized --extension arg from remote --send invocation
ServerCli has no --extension field -- run_send_server already gets
fully-resolved --partial and --final-source from the client, so the
extension is never needed remotely. Passing it made every remote-source
pull fail with "unexpected argument '--extension' found".
2026-08-25 17:14:58 -04:00
eric 9326890987 Treat empty remote dest path as home directory
scp's "host:" (no path after the colon) means the remote home
directory, reusing the source's basename. resolve_dest_paths only
recognized a directory target via a trailing '/', so an empty path
fell through and was used literally as the filename, producing an
empty --dest-final and hanging the remote --server --recv.
2026-08-25 17:13:58 -04:00
eric 3fd6ba3bd0 allow --remote-exe argument 2026-08-25 09:10:03 -04:00
eric 9fbef46c9a scpcap v0 2026-08-25 09:03:56 -04:00
eric 64775b8025 add streaming zstd spec 2026-08-21 17:46:49 -04:00
eric 7a47ab3788 init 2026-08-21 17:40:12 -04:00