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

Backport 592 #751

Merged
merged 5 commits into from
May 8, 2016
Merged

Backport 592 #751

merged 5 commits into from
May 8, 2016

Conversation

sodabrew
Copy link
Collaborator

@sodabrew sodabrew commented May 7, 2016

Second pass at #731 with rebased commits from #592 and #679.

tamird added 3 commits May 7, 2016 16:42
When available, we prevent `Timeout.timeout` from corrupting
connections using `Thread.handle_interrupt`. Fixes brianmario#542.

Revert "Update specs for Ruby 2.1 Timeout behavior by specifying 'Timeout::Error' as the klass parameter."

This reverts commit d0a5199.
@sodabrew sodabrew added this to the 0.3.21 milestone May 7, 2016
@sodabrew sodabrew self-assigned this May 7, 2016
…ent#execute

Timeout::ExitException was removed in Ruby 2.3.0, 2.2.3, and 2.1.8,
in favor of Timeout::Error. Backwards compatible aliases are provided
for Ruby 2.1.x and 2.2.x, but not earlier verions.

With thanks to @jeremy for PR brianmario#671 and @yui-knk for PR brianmario#677, this commit
also protects prepared statements from being interrupted, so the compat
shim is in Mysql2::Util.
@sodabrew sodabrew force-pushed the backport_592 branch 2 times, most recently from c3efe67 to 01e3bd0 Compare May 7, 2016 22:32
@rrosenblum
Copy link

Thank you for taking care of this and cutting a new version of the gem. This is going to be a big help to me and many others.

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

3 participants