Skip to main content

TCP_SECS

Constant TCP_SECS 

Source
pub const TCP_SECS: i64 = 20;
Expand description

How long to wait for a TCP transaction through Net::tcp.

A connect, a request and a response to a host that may be far away and may be slow. services/ shell used twenty seconds for exactly this before it moved onto this library, and the move to NET_SECS halved it by accident - which nothing in QEMU is slow enough to notice, and a real site on real hardware certainly is. Restored, and named so it cannot drift again.