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

Initiating functions no longer perform mutating operations #2915

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

ashtum
Copy link
Collaborator

@ashtum ashtum commented Aug 5, 2024

Using asio::deferred as a completion token defers the initiation of operations and creates a lazy operation which might even be discarded. We need to move mutating operations to the initiator function objects or the constructor of operation objects, which are guaranteed to run when the deferred operation is launched.

Using `asio::deferred` as a completion token defers the initiation of
operations and creates a lazy operation which might even be discarded.
We need to move mutating operations to the initiator function objects or
the constructor of operation objects, which are guaranteed to run when
the deferred operation is launched.
Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.04%. Comparing base (fee9be0) to head (eff1afb).

Files Patch % Lines
include/boost/beast/http/impl/write.hpp 66.66% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2915      +/-   ##
===========================================
- Coverage    93.09%   93.04%   -0.06%     
===========================================
  Files          177      177              
  Lines        13709    13709              
===========================================
- Hits         12763    12755       -8     
- Misses         946      954       +8     
Files Coverage Δ
include/boost/beast/websocket/impl/accept.hpp 96.04% <100.00%> (-0.04%) ⬇️
include/boost/beast/websocket/impl/handshake.hpp 95.65% <100.00%> (+0.03%) ⬆️
include/boost/beast/websocket/impl/teardown.hpp 78.26% <100.00%> (ø)
include/boost/beast/http/impl/write.hpp 90.35% <66.66%> (-1.72%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fee9be0...eff1afb. Read the comment docs.

@ashtum ashtum merged commit 848e206 into boostorg:develop Aug 6, 2024
47 of 49 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.

1 participant