mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 09:16:29 +00:00
setTimeout(50) per chunk would cap upload speed at ~1.28MB/s because ssh2's 32KB highWaterMark triggers backpressure on almost every 64KB write. setImmediate yields to the I/O phase without a fixed delay, letting TCP flush as fast as possible. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>