mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
@ -7,6 +7,7 @@ Version 51
|
|||||||
* Use BOOST_STRINGIZE
|
* Use BOOST_STRINGIZE
|
||||||
* DynamicBuffer benchmarks
|
* DynamicBuffer benchmarks
|
||||||
* Add construct, destroy to handler_alloc
|
* Add construct, destroy to handler_alloc
|
||||||
|
* Fix infinite loop in basic_parser
|
||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ loop:
|
|||||||
case state::complete:
|
case state::complete:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(p < p1 && eager())
|
if(p < p1 && ! is_done() && eager())
|
||||||
{
|
{
|
||||||
n = static_cast<std::size_t>(p1 - p);
|
n = static_cast<std::size_t>(p1 - p);
|
||||||
goto loop;
|
goto loop;
|
||||||
|
@ -984,6 +984,25 @@ public:
|
|||||||
|
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// https://github.com/vinniefalco/Beast/issues/452
|
||||||
|
void
|
||||||
|
testRegression452()
|
||||||
|
{
|
||||||
|
error_code ec;
|
||||||
|
test_parser<true> p;
|
||||||
|
p.eager(true);
|
||||||
|
string_view s =
|
||||||
|
"GET / HTTP/1.1\r\n"
|
||||||
|
"\r\n"
|
||||||
|
"die!"
|
||||||
|
;
|
||||||
|
p.put(boost::asio::buffer(
|
||||||
|
s.data(), s.size()), ec);
|
||||||
|
pass();
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
template<class Parser, class Pred>
|
template<class Parser, class Pred>
|
||||||
void
|
void
|
||||||
bufgrind(string_view s, Pred&& pred)
|
bufgrind(string_view s, Pred&& pred)
|
||||||
@ -1067,6 +1086,7 @@ public:
|
|||||||
testBody();
|
testBody();
|
||||||
testSplit();
|
testSplit();
|
||||||
testRegression430();
|
testRegression430();
|
||||||
|
testRegression452();
|
||||||
testBufGrind();
|
testBufGrind();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user