-
Notifications
You must be signed in to change notification settings - Fork 761
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
33across: Fix Shared Memory Overwriting #1764
Conversation
I am okay with the proposed changes, can you explain where a race condition could potentially occur in the code? |
@curlyblueeagle thank you for setting aside time to review this change. The
Same goes for reference fields found in I hope this clarifies a bit. |
@guscarreon thanks for the explanation, super helpful! We will definitely bear this mind in future. |
You don't need to worry about changes to those elements. Like the bid request, this is also a deep copy. This is the only exception within the request object.
@guscarreon is adding a separate PR to test for these modifications rather than relying on our code reviews. This was the intention of the race condition tests, but they weren't good enough and will removed. |
@curlyblueeagle,
Recently coded pull request #1756 is meant to enable Prebid Server to find data race conditions in adapter bidder source code. According to this newly coded feature, your adapter might be writing to shared memory and this PR implements an approach to prevent it. Please let us know whether or not you agree with the changes proposed in this pull request or if you rather want to code the fix yourself.
When it comes to adapters' source code improvements, we usually wait a week for owners to come back to us. If we get no feedback, we will go ahead to review and merge this pull request ourselves.
We'd love to hear your take on this issue.