Commit Graph

11490 Commits

Author SHA1 Message Date
Pranav K 471f48f56e Update to MSBuild 2017-03-07 22:21:16 -08:00
David Fowler 13519b6079 Fix CopyTo implementation in benchmark. (#1462)
* wip

* ooops
2017-03-07 17:39:56 -08:00
Cesar Blum Silveira 5743d740b4 Convert HTTP parsing FrameTests to IHttpParser tests (#1416).
- Also fix an issue in KestrelHttpParser where "Header: \r\n" is
  parsed with a value of " " instead of "".
2017-03-07 15:51:11 -08:00
Ben Adams e2f8c226ef Simplify TakeSingleHeader and Vectorize (#1457)
* Sanitize unsafe code
* Vectorize
* Extract Contains and add more tests
2017-03-07 13:30:57 -08:00
Nate McMaster beb53221c3
Merge branch 'rel/1.0.0' into dev 2017-03-07 12:52:07 -08:00
Pavel Krymets 1294c00618 Cleanup unused code (#1458) 2017-03-07 11:52:45 -08:00
Daniel Roth 8bc98a78c6 Update README.md 2017-03-07 11:17:56 -08:00
Daniel Roth 4a48db9346 Update README.md 2017-03-07 11:17:03 -08:00
David Fowler 02a4342908 Made changes to TakeSingleHeader (#1453)
* Made changes to TakeSingleHeader
- Remove state machine and just parse in place
- Inline OnHeader into TakeSingleHeader
- Use IndexOfVectorized instead of custom indexof
- Normalize header whitespace error
- Combine IndexOf and IndexOfAny into a single IndexOfNameEnd call
2017-03-07 08:58:55 -08:00
John Luo 06134bc6e0 Add IPv6 loopback address by default #1434 2017-03-06 18:02:28 -08:00
Cesar Blum Silveira 11c7eb5665 Verify all request rejections are logged (#1295). 2017-03-06 12:05:38 -08:00
John Luo 7d94abd606 Enable default server address test 2017-03-06 10:26:32 -08:00
Cesar Blum Silveira 0404bcc58c Add more microbenchmarks. 2017-03-06 10:14:22 -08:00
David Fowler 537b06f025 Interleave multispan and single span code path (#1442)
- Attempt at making the reader better for multispan parsing
- Try tighter inner loop
- Fix boundary case and clean code up
- Update the cursor once instead of after every header
- Fix errors with not updating consumed state on incomplete header payload
- Filled a test hole, removed a condition that should never happen
- Avoid struct copies every iteration when parsing headers
2017-03-06 09:06:28 -08:00
David Fowler 0ce111d9f1 Fix write size in benchmark (#1449) 2017-03-06 03:31:45 -08:00
Pranav K acf97b6102 Unpin CoreFxLab package versions 2017-03-05 08:54:51 -08:00
David Fowler da763b4873 Use ascii decoding routine that disallows null chars (#1445)
* Use ascii decoding routine that disallows null chars
- GetAsciiString() in newer corefxlab builds allows 0 (which is a valid
ascii char). To avoid future regressions, GetAsciiStringNonNullCharacters()
was added and used in place of GetAsciiString() when interpreting the
request line and headers
- Make GetAsciiStringNonNullCharacters return empty instead of null
2017-03-04 11:26:32 -08:00
David Fowler 20f75605ca Workaround rogue System.IO.Pipelines on nuget.org 2017-03-03 22:35:41 -08:00
Cesar Blum Silveira 83edc38e72 Use TechEmpower request as baseline for request parsing benchmarks. 2017-03-03 15:55:07 -08:00
Cesar Blum Silveira de2c3d3608 Merge branch 'KrzysztofCwalina/NewBenchmark' into dev 2017-03-03 15:28:34 -08:00
Stephen Halter ac60f13312 Modify RequestProcessingAsync to call single parse method (#1427)
* Modify RequestProcessingAsync to call single parse method
* Fix bad request logging
2017-03-03 14:43:32 -08:00
Krzysztof Cwalina 7cc5c537a4 Added a new benchmark 2017-03-03 13:13:11 -08:00
Nate McMaster c598f1918d Collect commit files from artifacts directory 2017-03-03 10:07:49 -08:00
David Fowler 1d685e195e Parser cleanup and remove line continuation header error (#1431)
- Cleaned up some parsing logic (removed locals etc)
- Removing line continuation errors cleaned up code duplication
a little bit
2017-03-03 10:04:44 -08:00
David Fowler 4533383612 React to hosting change
- Kestrel binds to ipv4 by default

Fixes #1432
2017-03-02 23:09:13 -08:00
David Fowler 4d7c6ff69f use rtm appveyor 2017-03-02 21:44:36 -08:00
Stephen Halter 1e0f2b3951 Fix systemd activation tests (#1429) 2017-03-02 17:26:41 -08:00
arespr ac5fd3f29f PR feetback 2017-03-02 22:45:36 +01:00
arespr 346d8eaa03 address PR feedback 2017-03-02 22:14:36 +01:00
arespr bb74a6ce34 address PR feetback, fix unit tests for invalid known methods 2017-03-02 22:04:43 +01:00
David Fowler 8929b40527 Single span optimizations (#1421)
- Added a fast path for single span in the start line parsing
- Added a fast path for single span header parsing
- Changed the out header loop to be pointer based (instead of slicing)
2017-03-02 12:17:39 -08:00
arespr 96fead6282 better GetKnownMethodIndex, unit tests, benchmark repair 2017-03-02 20:58:18 +01:00
Nate McMaster aaea173cba Update AppVeyor and Travis settings 2017-03-02 09:44:00 -08:00
Ben Adams 40ee51846c Add allocations column (#1422) 2017-03-02 06:56:05 -08:00
David Fowler ca31627a5e Parser clean up (#1419)
- Remove stackalloc
- Remove extra Move in ParseRequestLine
2017-03-01 22:33:37 -08:00
Nate McMaster ba69cd5df4 Add VerifyAll target shim 2017-03-01 18:37:04 -08:00
Nate McMaster 35ab125ba6 Update AppVeyor and Travis settings 2017-03-01 18:25:51 -08:00
Nate McMaster 047e4a8533 Update AppVeyor and Travis settings 2017-03-01 18:25:45 -08:00
Nate McMaster 7f82c7030a Update AppVeyor and Travis settings 2017-03-01 18:25:39 -08:00
Nate McMaster c36fcbab2e Update AppVeyor and Travis settings 2017-03-01 18:25:39 -08:00
Nate McMaster dcfbbab005 Update AppVeyor and Travis settings 2017-03-01 18:25:39 -08:00
Pavel Krymets f2a00da811 Loop over bytes inside states of parser state machine (#1417) 2017-03-01 18:18:34 -08:00
Nate McMaster 599993795a Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster fbb2360f87 Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster 4f83e641a7 Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster 55a7f9d8c9 Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster 7696a8e82d Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster 1f74ceca1b Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
Nate McMaster d3924b0149 Change korebuild branch and fix argument forwarding in bootstrapper 2017-03-01 18:14:13 -08:00
arespr b89415d9b2 knownmethods optimizations 2017-03-02 03:10:00 +01:00