Skip to content

Better error handling#99

Merged
zachmu merged 11 commits intomainfrom
zachmu/dumps
Jan 24, 2024
Merged

Better error handling#99
zachmu merged 11 commits intomainfrom
zachmu/dumps

Conversation

@zachmu
Copy link
Member

@zachmu zachmu commented Jan 24, 2024

Server no longer always forcefully closes a connection when catching a panic, which is still very common because of unsupported features that panic, as well as unintended panics due to bugs.

This change also refactors the connection handling logic to extract a new ConnectionHandler type.

Also fixes a problem where a errors during a Query execution would hang a connection while it waited for a Sync message that never came. Added waitForSync flag in ConnectionHandler to manage this bit of state.

@zachmu zachmu requested a review from Hydrocharged January 24, 2024 00:18
Copy link
Collaborator

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The added changes make sense, so just some commenting comments.

@zachmu zachmu enabled auto-merge January 24, 2024 19:06
@zachmu zachmu merged commit f07d760 into main Jan 24, 2024
@zachmu zachmu deleted the zachmu/dumps branch January 24, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants