-
Notifications
You must be signed in to change notification settings - Fork 669
Description
Version of Beast: Boost 1.83.0
The documentation for websocket::stream::async_close does not specify what happens to the underlying TCP socket in both success and error paths (same goes for websocket::stream::close).
I'm guessing the teardown customization point has something to do with this, but there is no mention of it in the async_close documentation.
In particular, I need to know if the underlying TCP socket is closed when websocket::stream::async_close completes either successfully or with an error.
I know that I can do if (websocket_.next_layer().is_closed()) in the completion handler to find out at runtime, but I'd still like to know the behavior.
ADDENDUM: websocket::stream::async_close also does not document whether is_open() == false is a postcondition whether or not the operation succeeds. I would expect is_open() == false to always be a postcondition whether or not it succeeds.