propertyTstSSHSocketClient.SendTimeout
property SendTimeout: Cardinal read fSendTimeout write fSendTimeout default cSSHSendTimeoutMSec;
Milliseconds a packet may wait for room in the socket'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. When the limit runs out, the 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 server that keeps reading never reaches it.
On Windows the socket normally waits for room inside the operating system's own send, without a limit, and this property does not come into play - unless WaitForData has been called on SocketClient, which makes the socket stop waiting on its own. It applies on the other platforms, where the socket never waits on its own. Close waits for a packet that is waiting for room (during ConnectToHost, Login or RequestService it cancels the call instead, and the call ends when the send does). Closing SocketClient from another thread ends that wait at once - except on Windows while the socket waits inside the system's own send, where that Close waits for the send too.