connection::close, you can re-open the connection later by calling
connection::connectnormally, even if the close operation failed.
connection::connectoperation failed, you can try opening it again by simply calling
connection::closefirst, and then try opening the connection again by calling
Stream type doesn't
type requirements, then you can't use
and you are thus responsible for establishing the physical connection and closing
the underlying stream, if necessary. Some guidelines:
connection::quit, you should close the underlying stream, if required. You should then re-establish the physical connection on the stream, and call
connection::handshakeoperation failed, you are responsible for closing the underlying stream if required. You should then establish the physical connection again, and then call
connection::quitfirst, then close and re-open the physical connection, and finally call
Note that Boost.MySQL does not perform any built-in retry strategy, as different use cases have different requirements. You can implement it as you best like with these tools. If you implemented your own and you would like to contribute it, please create a PR in the GitHub repository.