mirror of
https://github.com/boostorg/beast.git
synced 2026-01-23 05:22:09 +00:00
Merges PR#2414 I used this example to start building my WebSocket application, however, I noticed that upon removing the echoing in the on_read method, the server repeatedly throws errors without exiting the method. You can recreate this problem by replacing the async_write with do_write and cause any error (i.e. client reloads the page). Adding a return statement here would make debugging for future changes much easier and it wouldn't harm the existing echoing in any way.
7.1 KiB
7.1 KiB