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
Connector lock not acquired when changing state to Fetching #1502
The connector state should only be changed when the connector lock is acquired, otherwise race conditions can occur. This is usually the case, but NpgsqlDataReader changes the connector state to Fetching without acquiring the lock in ProcessMessage. This can lead to a race condition - if the connector is being broken while writing the command, and the user is reading via the NpgsqlDataReader, the Broken state can be overwritten by Fetching.
Even with this resolved, it's probably a good idea to assert that the connector lock is acquired by the current thread when trying to access the state.
Activity
2 remaining items