you can re-open the connection later by calling
normally, even if the close operation failed.
operation failed, you can try opening it again by simply calling
first, 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:
you should close the underlying stream, if required. You should then re-establish
the physical connection on the stream, and call
operation failed, you are responsible for closing the underlying stream
if required. You should then establish the physical connection again, and
first, 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.