This repository has been archived by the owner on Mar 17, 2022. It is now read-only.
forked from olucurious/PyFCM
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure requests.Session is not shared between threads
Per psf/requests/issues/2766 requests.Session is likely not threadsafe. This change puts the session in a thread local so that each thread has a different copy.
- Loading branch information
Keith Grennan
committed
Feb 15, 2022
1 parent
28022a2
commit 52ed65d
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters