Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle IOException and SocketException #14

Merged
merged 5 commits into from
Aug 28, 2024
Merged

Handle IOException and SocketException #14

merged 5 commits into from
Aug 28, 2024

Conversation

lausannel
Copy link
Collaborator

This PR fixes #13

  1. The SocketException is caused by the unhandled Exception in Open method, stemming from the initialization process of TCPClient.
  2. The IOException occurred due to a missing transport closure in the Reconnect method when only one single endpoint is available.

With these changes, a unified exception type is now returned when a query statement execution fails.

@lausannel lausannel changed the title fix: handle IOException and SocketException Handle IOException and SocketException Aug 25, 2024
Copy link

@CritasWang CritasWang left a comment

Choose a reason for hiding this comment

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

Cool, Now the client has become stronger~

LGTM

@HTHou HTHou merged commit 5211c9c into apache:main Aug 28, 2024
4 checks passed
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.

Reconnection Failed after Restarting the Server
3 participants