Skip to content
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

longevity of connection in lambda and error handling #101

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

cxx24
Copy link
Collaborator

@cxx24 cxx24 commented Jun 22, 2024

No description provided.

@cxx24 cxx24 requested review from abushev and mrbald June 22, 2024 06:42
request_parser_.reset();
reply_.headers.resize(0);
reply_.status = reply::status_type::ok;
reply_.content="";
request_ = request();
do_read();
request_ = request();
Copy link
Collaborator

@mrbald mrbald Jun 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not do anything at all if ec is an error, so move all happy path callback code under if(!ec)

@abushev abushev merged commit 1cd9b2e into venediktov:cxx23 Jun 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants