Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[PATCH] Allow for recovery after errors in extended queries #4
Currently, epgsql will not allow the user to request a sync while the connection is in the "executing" state. When an error occurs in this state, then, the connection becomes wedged because the server requires a sync request to continue:
The following commit creates a new "awaiting_sync" state and modifies the connection's state machine to transition into this state when an error is encountered in the "executing" state. In this new state, the user can request a sync but nothing else. Attempts to make other requests result in