basic_parser optimizations:

fix #185, fix #489

* SSE4.2 is detected

* basic_parser uses SSE4.2 if available

* basic_parser tries to parse on the initial buffer and if
  it does not find the end of header it shifts to a new
  strategy of waiting for the end of header to defeat
  slow loris attacks. This coincidentally is also faster
  than the previous algorithm.
This commit is contained in:
Vinnie Falco
2017-07-20 08:15:29 -07:00
parent c94821384d
commit e608acb791
11 changed files with 1733 additions and 1375 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ public:
false, dynamic_body, fields>>(
Repeat, cres_);
});
#if 1
#if 0
timedTest(Trials, "nodejs_parser",
[&]
{