mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 00:20:45 +00:00
* fix(sftp): fail uploads promptly when the SFTP connection is lost instead of hanging ssh2 silently drops requests issued on an SFTP channel that has already ended, and ssh2-sftp-client keeps its stale sftp after a TCP reset. After a reset / sshd kill / VPN drop the concurrent-isolated upload failed, then the fallback checkpoint stat on the dead browse channel never settled, freezing the task at 'Transferring' forever with a leftover .part. * fix(sftp): release the path gate when a write channel ends before OPEN A resumable staged upload marked the path gate issued, then found the isolated channel already closed. The write-error path left a generated stage gate held, and the resumable flow skipped the bounded fastPut wait, so later uploads waited forever. No OPEN was sent, so release the gate and reject with sftpChannelClosedError. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com> --------- Co-authored-by: campaign <campaign@local> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>