Class ProtocolLimits
Limits applied when reading messages of either protocol.
public sealed record ProtocolLimits : IEquatable<ProtocolLimits>
- Inheritance
-
ProtocolLimits
- Implements
- Inherited Members
Properties
Binary
Limits applied to binary packets, see Limits.
public DecodeLimits Binary { get; init; }
Property Value
- DecodeLimits
Default
Bounds every message so a hostile peer cannot exhaust memory or time.
public static ProtocolLimits Default { get; }
Property Value
MaxTextBytes
Maximum size of a text message in bytes, see MaxTextBytes.
public long MaxTextBytes { get; init; }
Property Value
Unlimited
No limits, for trusted input such as a store archive.
public static ProtocolLimits Unlimited { get; }