eidheim / Simple-WebSocket-Server

A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

internal_io_service not reset in stop() ?

rberlich opened this issue · comments

commented

Hi there,
it appears as if the internal_io_service variable, while being set by SimpleWeb::start(), is not being reset to false by SimpleWeb::stop() ? Essentially I would expect stop() to return SimpleWeb into a pristine condition.
Kind Regards,
Beet

The io_service does not need to be reconstructed on the second start(). If an external io_service is to be used, it has to be set before start() is called the first time.