-
Notifications
You must be signed in to change notification settings - Fork 557
Close connection during garbage collection #684
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
Conversation
lib/mysql2/client.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add :automatic_close to the list of booleans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. automatic_close= already does the conversion using RTEST.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
0e0a209 to
a1d97e9
Compare
ext/mysql2/client.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid re-using the variable value, since we're not modifying the argument and shouldn't give the impression that we might be trying to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the return value from assignment is usually ignored, I'll change this to return the unmodified input value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
Thanks for your patience on this! I'm collecting the todo list for 0.4.3 and I'm keen to include this PR! |
a1d97e9 to
890345e
Compare
|
The testing of |
|
I do have a windows vm, I'll give it a spin!
|
Close connection during garbage collection
Restores the behavior of v0.3.15 which sends
QUITduring garbage collection. Keep the behavior in #463 behind a new connection option,automatic_close.Relates to #606.