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 S3Boto3Storage to avoid race conditions in a multi-threaded WSGI environment #238

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Conversation

jdufresne
Copy link
Contributor

Use a different boto3 session for each instance of the S3 connection.


Resurrecting from PR #200 as upstream does not appear to be moving on a change. This fixes the race as far as django-storages is concerned.

…environment

Use a different boto3 session for each instance of the S3 connection.
@codecov-io
Copy link

codecov-io commented Dec 18, 2016

Current coverage is 59.27% (diff: 33.33%)

Merging #238 into master will decrease coverage by 0.05%

@@             master       #238   diff @@
==========================================
  Files            17         17          
  Lines          1692       1692          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           1004       1003     -1   
- Misses          688        689     +1   
  Partials          0          0          

Powered by Codecov. Last update c366cbf...8017834

@jschneier
Copy link
Owner

Unfortunate about upstream. Thanks for the fix.

@jschneier jschneier merged commit ed45c80 into jschneier:master Jan 11, 2017
jschneier added a commit that referenced this pull request Jan 12, 2017
@jdufresne jdufresne deleted the sessions branch January 14, 2017 18:06
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

3 participants