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

rack/middleware: fix performance stat sending #901

Merged
merged 1 commit into from Feb 14, 2019
Merged

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Feb 14, 2019

Using thread locals was not a reliable approach. While local testing was showing
that subscribers share information, in production it didn't really work. It
could be the order of subscribers, or something else (hard to tell).

This change removes the need for thread locals and uses a shared object.

Using thread locals was not a reliable approach. While local testing was showing
that subscribers share information, in production it didn't really work. It
could be the order of subscribers, or something else (hard to tell).

This change removes the need for thread locals and uses a shared object.
@kyrylo kyrylo merged commit 2f7d15f into master Feb 14, 2019
@kyrylo kyrylo deleted the performance-fix branch February 14, 2019 13:47
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

1 participant