-
Notifications
You must be signed in to change notification settings - Fork 8
port beast testing tools #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
An automated preview of the documentation is available at https://68.http-io.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2025-10-21 13:43:40 UTC |
if(ec == http_proto::condition::need_more_input) | ||
{ | ||
// specific to http_io::async_read_some | ||
if(total_bytes_ != 0 && condition_(pr_)) |
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.
This looks like a change unrelated to the test tools?
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.
The PR contains two commits: the first adds testing tools, and the second adds tests for read operations.
system::error_code | ||
make_error_code(error e) noexcept | ||
{ | ||
static detail::error_cat_type const cat{}; |
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.
Don't we put this in the compiled lib these days?
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.
We decided to keep testing tools header only as its usage is optional.
*/ | ||
class handler | ||
{ | ||
boost::optional<system::error_code> ec_; |
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.
Do we really need optional here?
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.
It's used in any_handler
where the handler might complete with an error or succeed.
|
||
handler(handler&& other) | ||
: ec_(other.ec_) | ||
, invoked_(boost::exchange(other.invoked_, true)) |
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.
Does boost::exchange
add another dependency?
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.
boost::exchange
is in core.
rts::context rts_ctx; | ||
http_proto::install_parser_service(rts_ctx, {}); | ||
|
||
// async_read completes when the parser reads |
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.
Oh yes this looks much better
2541e0c
to
b37593f
Compare
An automated preview of the documentation is available at https://68.beast2.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2025-10-22 08:15:20 UTC |
0b9dd61
to
3bfe49b
Compare
3bfe49b
to
400ff23
Compare
No description provided.