websocket_client_async_ssl_system_executor sample exits before connecting
@madmongo1 is already working on this.
Since Sep 9, 2020.
Assessment
This issue has not been assessed yet.
Description
Boost 1.73 BOOST_BEAST_VERSION 290
Steps necessary to reproduce the problem
Compile and run the Debug x86 configuration in the attached sample with visual studio 2019. This is the same sample as in the boost/beast deployment. Debug x86 has the command line arguments inserted.
websocket_client_async_ssl_system_executor.zip
The issue with the sample is the code line 258:
net::system_executor().context().join();
Contrary to the comment in the code this does not wait until the system_executor runs out of work but actively invokes scheduler_.work_finished(); which decrements the outstanding_work_ count and stops the scheduler_, resulting in the websocket session ending prematurely.
As I am using the websocket_client_async_ssl_system_executor sample as the basis of my own work how one can wait on the system_executor?
Thanks
Markus
- Dominant language
- C++
- Stars
- 4.8k
- Forks
- 694
- Avg merge
- 12h 48m
- Merged PRs (30d)
- 1
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/beast
-
Missing pending-buffer size cap in Strategy::rle triggers out-of-bounds write in copy_blockMay be free again @ashtum claimed this 46 days ago, and no pull request is open. Open
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
area/actorsystem bug tsan
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ydb-platform/ydb#54282 ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
project-chip/connectedhomeip#74434 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
tenstorrent/tt-metal#58057 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
maplibre/maplibre-native#4690 ·
Maintainers usually reply within 1 day
-
comp-query-execution
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ClickHouse/ClickHouse#122569 ·
Maintainers usually reply within 1 day