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

Added workaround for async_shutdown(). #99

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

redboltz
Copy link
Owner

@redboltz redboltz commented Dec 5, 2023

When counterpart socket closed immediately, TLS async_shutdown() CompletionToken never called. It very rarely happened. This fix added timeout for that.
If timer is fired, then TCP layer closed forcibly.

@codecov-commenter
Copy link

Codecov Report

Merging #99 (656dbb2) into main (1d00a9d) will decrease coverage by 0.14%.
The diff coverage is 75.47%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
- Coverage   89.15%   89.02%   -0.14%     
==========================================
  Files          92       92              
  Lines       10088    10130      +42     
==========================================
+ Hits         8994     9018      +24     
- Misses       1094     1112      +18     
Files Coverage Δ
include/async_mqtt/endpoint.hpp 83.91% <100.00%> (+0.07%) ⬆️
include/async_mqtt/stream.hpp 82.62% <72.34%> (-2.30%) ⬇️

... and 1 file with indirect coverage changes

When counterpart socket closed immediately, TLS async_shutdown()
CompletionToken never called. It very rarely happened.
This fix added timeout for that.
If timer is fired, then TCP layer closed forcibly.
@redboltz redboltz force-pushed the fix_tls_shutdown_unfiniiish branch from 656dbb2 to d1ea787 Compare December 5, 2023 11:04
@redboltz redboltz merged commit 292ec62 into main Dec 5, 2023
11 checks passed
@redboltz redboltz deleted the fix_tls_shutdown_unfiniiish branch December 5, 2023 11:52
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.

2 participants