propertyTsmAsyncTLSServer.MaxSendQueueBytes
property MaxSendQueueBytes: Integer read fMaxSendQueueBytes write fMaxSendQueueBytes default cDefaultMaxSendQueue;
Per-connection ceiling on QUEUED outbound octets - what an application has handed to Send while an earlier send was still in flight, and the peer has not taken yet. The buffer in flight itself is not counted against it. THE HOLE IT CLOSES: the send FIFO was unbounded, so a peer that issued requests and then stopped reading its socket - a zero TCP window, which is a normal state and needs no malice - made every response pile up as a heap copy with nothing to stop it. Neither TLS nor HTTP/1.1 provides backpressure, and HTTP/2 flow control does not cover header frames, so nothing else in the stack was paying attention. Breaching it CLOSES the connection and is not vetoable: by then the memory is already committed, and asking a handler would only hold it longer. OnSendQueueOverflow reports it. Pair it with IdleTimeout, which re-arms on send COMPLETION and therefore bounds how long such a peer can hold what it has pinned. 0 = unbounded (not advisable against untrusted peers). A SINGLE LARGE Send IS NOT SAFE FROM IT. Something is in flight far more often than a plugin can see: right after a TLS 1.3 handshake the server's NewSessionTicket flight is, so a client that sends its request directly behind its Finished has its whole first response queued; on HTTP/2 the previous frames of the same connection are. A plugin that sends more than a few kilobytes must pace itself with iAppTransportFlow.SendCredit and iAppSessionDrain - the HTTP/1.1 and HTTP/2 plugins in StreamSec.Mobile.HTTPS do, and never trip it. Read tTLSConnection.SendQueueHighWater to size it against real traffic.