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

Initialize the thread local in parser module in every thread #267

Merged
merged 2 commits into from
May 14, 2024

Conversation

aisk
Copy link
Member

@aisk aisk commented May 14, 2024

Fix #266

@aisk
Copy link
Member Author

aisk commented May 14, 2024

Since the error that this change is intended to fix is a critical issue, it will affect all users who tried to load the thrift files in a sub-thread, I will merge it without any code review.

cc @ethe

@aisk aisk merged commit 9db168d into Thriftpy:master May 14, 2024
15 of 18 checks passed
@aisk aisk deleted the thread-initialize branch May 14, 2024 13:12
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.

AttributeError: '_thread._local' obiect has no attribute 'thrift_stack'
1 participant