pub const TRANSFER_STALL: Duration;Expand description
How long a transfer may go without moving a byte before it is given up on.
This is the only time limit a large transfer has. A total deadline caps the file size a slow link can ever move (300 s at 1 Mbit/s is 36 MB), so uploads and downloads are bounded by progress instead: any rate at all keeps them alive, and only a dead connection is abandoned.
Two minutes rather than one because TCP’s own retransmit backoff on a lossy long-haul path reaches that between attempts: a shorter window abandons a connection the kernel is still recovering. Servers we run keep their gap timers above this, so the client is the one that gives up and can say why, instead of meeting a socket the proxy already closed.