Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebSocket should only call async_close once (#4848)
Prevent WebSocket connections from trying to close twice. The issue only occurs in debug builds (assertions are disabled in release builds, including published packages), and when the WebSocket connections are unprivileged. The assert (and WRN log) occurs when a client drives up the resource balance enough to be forcibly disconnected while there are still messages pending to be sent. Thanks to @lathanbritz for discovering this issue in #4822.
- Loading branch information