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

Make sure Digest loading is thread-safe #32

Merged
merged 1 commit into from
Jun 4, 2015
Merged

Make sure Digest loading is thread-safe #32

merged 1 commit into from
Jun 4, 2015

Conversation

jage
Copy link
Contributor

@jage jage commented Jun 4, 2015

I'm defining the hashers in constants to avoid any performance overhead
by the mutex since we hash a lot of URLs

Digest() is only thread safe in Ruby 2.2.0 and newer. Patch: ruby/ruby@c02fa39

I tried creating a test for this, but it's hard to provoke the error
with the old code to verify the test.

The patch version number needs a bump when this goes in.

Closes #20

I'm defining the hashers in constants to avoid any performance overhead
by the mutex since we hash a lot of URLs

Digest() is only thread safe in Ruby 2.2.0 and newer. Patch:
ruby/ruby@c02fa39

I tried creating a test for this, but it's hard to provoke the error
with the old code to verify the test.

Closes #20
@walro
Copy link
Contributor

walro commented Jun 4, 2015

LGTM

@dentarg
Copy link
Collaborator

dentarg commented Jun 4, 2015

👍

@jage jage merged commit e755340 into master Jun 4, 2015
@jage jage deleted the fix/20 branch June 4, 2015 15:09
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