Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsnipBaseOctetConnection.PadRequestsTo

property PadRequestsTo: Integer read fPadRequestsTo write fPadRequestsTo;
FRAME PADDING. A snip frame is as long as what it carries, so anything counting octets between two endpoints - a proxy, a load balancer, a network observer - reads the size of a request it cannot decrypt, and from that the verb, the length of an argument, and often whether the answer was a hit or a miss. Setting these makes every request frame the same size as every other, and every response frame the same as every other, at the cost of the padding.

Zero, the default, means no padding and no change to anything.

PADDING IS PER KIND, NOT PER DIRECTION, so a client and a server are configured with the SAME two numbers: whichever kind you send you pad, and whichever you receive you can require. A frame already at or over its size is padded up to the next multiple rather than refused, because an abort whose trigger depends on the content would be exactly the oracle this is closing.

Nothing needs to negotiate: the padding sits after the end-of-message octet, the header's length covers it, so a reader consumes it and the decoder never looks at it. An unpadded peer therefore still interops - which is why RequirePadding exists, since silently accepting an unpadded peer is how the property gets lost.