Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9116322

Browse files
committed
catch exceptions in parse_headers
1 parent6f229d8 commit9116322

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎boost/network/protocol/http/server/async_connection.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,12 @@ struct async_connection
477477
}elseif (parsed_ok ==true) {
478478
partial_parsed.append(boost::begin(result_range),
479479
boost::end(result_range));
480-
parse_headers(partial_parsed, request_.headers);
480+
try {
481+
parse_headers(partial_parsed, request_.headers);
482+
}catch (...) {
483+
client_error();
484+
break;
485+
}
481486
new_start =boost::end(result_range);
482487
thread_pool().post(boost::bind(
483488
&Handler::operator(), &handler,cref(request_),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp