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

policy/url_rewriting: avoid assigning self.something in rewrite() #818

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Jul 23, 2018

Consider the case of 2 requests being attended at the same time by the same worker. Each request could modify the value that the other sees.

As a general rule, in the case of policies, we should only assign "self._something" in new().

@davidor davidor requested a review from a team as a code owner July 23, 2018 14:43
Consider the case of 2 requests being attended at the same time by the
same worker. Each request could modify the value that the other sees.

As a general rule, in the case of policies, we should only assign
"self._something" in new().
@davidor davidor force-pushed the url-rewriting-self-assignment-bug branch from 193678c to f61d8c1 Compare July 23, 2018 14:44
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@davidor davidor merged commit cf07a23 into master Jul 23, 2018
@davidor davidor deleted the url-rewriting-self-assignment-bug branch July 23, 2018 15:15
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.

2 participants