Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomHTTPSProtocol.TryChargeBody

function TryChargeBody(aBytes: Integer): Boolean;
Charged by every wire session before it buffers request-body octets and released when it lets go. Safe from any thread. WHY IT EXISTS: the per-request and per-connection caps bound ONE exchange and ONE connection; neither says anything about the server. At the defaults that left MaxLiveSessions x 8 MiB - some 64 GiB - admissible in-flight body, because the admission gates count CONNECTIONS and nothing counted the memory each was allowed to hold. This is that missing count.