propertyTstSSHSocketServer.SendTimeout
property SendTimeout: Cardinal read fSendTimeout write fSendTimeout default cSSHSendTimeoutMSec;
Milliseconds a packet may wait for room in a connection's full send buffer, with not one byte taken, before the connection counts as broken (default 30000). 0 waits for ever.
Every packet is written whole: when the operating system takes only part of it, the rest follows, and when the buffer is full the send waits for room and tries again. A client that reads more slowly than the server writes - a large SFTP download, forwarded traffic over a slow link - therefore slows the server down instead of breaking the connection.
The limit is for a client that has stopped reading altogether. When it runs out, the connection's socket is closed and the send raises eExternalSendError: part of the packet may already be on its way, so the connection cannot go on. The time counts from the last byte taken, so a slow client that keeps reading never reaches it.
While a packet waits, its connection neither sends nor reads anything else: packets go out one at a time, in order, under the same lock the connection reads under. Freeing the server, or deactivating it with CloseAllOnDeactivate True, ends the wait at once. A change applies to connections accepted after it.