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

fix: create MessageDigest when needed #1906

Merged

Conversation

samuelAndalon
Copy link
Contributor

📝 Description

MessageDiggest is NOT thread safe, if multiple queries are being executed concurrently it might cause a race condition and send back a PersistedQueryIdInvalid error

https://opensource.expediagroup.com/graphql-kotlin/docs/server/automatic-persisted-queries/#errors

instead we will create a MessageDigest instance each time.

@dariuszkuc dariuszkuc changed the title feat: create MessageDigest when needed fix: create MessageDigest when needed Jan 3, 2024
@dariuszkuc dariuszkuc added the changes: patch Changes require a patch version label Jan 3, 2024
@dariuszkuc dariuszkuc merged commit 34687a7 into ExpediaGroup:master Jan 3, 2024
@samuelAndalon samuelAndalon deleted the feat/thread-safe-sha256 branch January 3, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version
Development

Successfully merging this pull request may close these issues.

None yet

2 participants