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

close the invalid connection #91

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

HarrisChu
Copy link
Contributor

close the graph client if there's a verifyclient or auth error.
reduce the invalid connection.

@@ -89,11 +89,13 @@ func (d *driverGraph) open(driver types.Driver) error {
}

if err = graphClientDriver.VerifyClientVersion(); err != nil {
graphClientDriver.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

How about use _ = graphClientDriver.Close()?

Can you help fix a similar issue?

metaClientDriver := driver.NewMetaClientDriver(transport, pf)
...


storageAdminClientDriver := driver.NewStorageClientDriver(transport, pf)
...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure
there's no VerifyClientVersion in storage driver

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

@veezhang veezhang merged commit 0ea5af1 into vesoft-inc:master Mar 3, 2022
@HarrisChu HarrisChu deleted the close_invalid_conn branch March 3, 2022 08:15
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.

None yet

2 participants