Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

websocket_client_async_ssl_system_executor sample exits before connecting

Abierto
#2,002 10 comentarios 0 reacciones 1 asignado Ver en GitHub

@madmongo1 ya está trabajando en esto.

Desde el 9/9/2020.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Bug
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

Lenguaje dominante
C++
Estrellas
4.8k
Forks
696
Merge medio
7 d 1 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de boostorg/beast

Todos los issues de boostorg/beast

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.