You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Look into merging or linking connector binding scopes and user actions #3260
We currently have two separate mechanisms that encompass entire "operations":
User action. This is old, and was mainly about having a concurrency detection mechanism, to throw meaningful exceptions when users accidentally use a connection in an un-safe way. It also makes sure we don't perform an application keepalive while a user operation is in progress.
Connector binding scope. This is new in 5.0, and is about binding and unbinding connections and connectors.
We should look into merging or somehow linking these two mechanisms. One good example of an issue is NpgsqlTransaction.Commit:
The binding scope ends when the RFQ message is received within ExecuteInternalCommand; this returns the connector to the pool when in multiplexing. But the user action is ended afterwards; it's forbidden to change connector state after returning it to the pool.
Activity
roji commentedon Oct 25, 2020
Note that after #3266, this is no longer a source of bugs, but we should still consider doing it to clean up the design. Moving out of 5.0.0.
vonzshik commentedon Jan 18, 2023
We can probably close this since #4839 removes binding scopes.
roji commentedon Jan 18, 2023
Yep, makes sense.