This repository was archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 523
Use ContentLength as primary data source #1313
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2c5dd5f
Use ContentLength as primary data source
benaadams bc2cb10
Zero contentLength msgbody doesn't need state
benaadams e2615b2
Remove HasContentLength prop
benaadams 6a0c922
Throw correct exception, FormatInt64, test
benaadams 4718d29
Add extra contentlength tests
benaadams 421d1a1
Throw multiple content lengths
benaadams 85a6655
Cleanup headers
benaadams 55515dd
Headers Cleanup
benaadams e330a9c
Cut Append/AppendNonPrimaryHeaders zeroed stack
benaadams 99c9012
Stop benchmarks crashing
benaadams 04229be
Fast ulong output
benaadams 4b57d2c
Cleanup KnownHeaders
benaadams 1a3f4bf
Test before set
benaadams 6333f36
Clear test before set, use local var
benaadams a1bfe6b
Feedback
benaadams dc8004e
Feedback
benaadams 92b6bfa
Feedback
benaadams 08ad325
ThrowMultipleContentLengthsException
benaadams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wouldn't this be slower than SetRawContentLength?
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.
Is an extra 8 byte field in every header set to make the occasional 1 byte write of
0
slightly faster (as most responses will have some content) - can always special case 0 in the copyfrom..?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.
Your justification makes sense.