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

server/handler.go: Use exposed mysql.Conn.Conn instead of trying to track it through Accept. #387

Merged
merged 3 commits into from
Apr 27, 2021

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Apr 27, 2021

No description provided.

@reltuk reltuk requested a review from zachmu April 27, 2021 16:35
errChan <- ErrConnectionWasClosed.New()
return
case sockstate.Error:
errChan <- err
logrus.Warnf("Connection checker exiting, got err checking sockstate: %v", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're changing the behavior here as well to just warn and shutdown the checking goroutine. This functionality is nice-to-have, but by no means critical.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

errChan <- ErrConnectionWasClosed.New()
return
case sockstate.Error:
errChan <- err
logrus.Debugf("Connection checker exiting, got err checking sockstate: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

Probably at least Info?

@reltuk reltuk merged commit 55a901b into master Apr 27, 2021
@Hydrocharged Hydrocharged deleted the aaron/fix-server-closes-due-to-bad-sockstate branch December 8, 2021 07:07
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