-
Notifications
You must be signed in to change notification settings - Fork 193
Conversation
public long BufferBodyLengthLimit { get; set; } = DefaultBufferBodyLengthLimit; | ||
|
||
/// <summary> | ||
/// A limit for the number of form entries to allow. Entries with the same key will be combine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: combined
Address the comments, and |
|
||
/// <summary> | ||
/// If <see cref="BufferBody"/> is enabled, this is the limit for the total number of bytes that will | ||
/// be buffered. Forms that exceed this limit will throw an <see cref="InvalidDataException"/> when parsed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious regarding usage of MemoryBufferThreshold
vs. BufferBodyLengthLimit
: If I want to buffer the data and also be safe from larger payloads, I could set the MemoryBufferThreshold alone...so wondering the use of BufferBodyLengthLimit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MemoryBufferThreshold is not a hard limit, no exceptions will be thrown. It's just the amount of memory to use before switching to disk instead.
Thanks, the comments cleared some questions for me!. |
public int KeyLengthLimit { get; set; } = FormReader.DefaultKeyLengthLimit; | ||
|
||
/// <summary> | ||
/// A limit on the length of individual form values. Forms that exceed this limit will throw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a individual form entry value exceeds this limit then whatever will throw.
291b530
to
7ebd87a
Compare
@muratg @blowdart @rynowak @kichalla