asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
206 stars 21 forks source link

Drain request queue when connection is closed #120

Closed jchrys closed 1 year ago

jchrys commented 1 year ago

Motivation: Ensure that the request queue is drained when connection is closed, as there is a chance to remain unprocessed. This situation can prevent errors from being propagated effectively.

Modification: Implemented proper draining of the request queue and sent an exit mesage.

Result: The connection is now correctly closed, ensuring the proper handling of requests and preventing any unprocessed errors.

jchrys commented 1 year ago

resolved by #119