customerio-python icon indicating copy to clipboard operation
customerio-python copied to clipboard

Ensure requests.Session is not shared between threads

Open keeth opened this issue 3 years ago • 0 comments

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.

keeth avatar Feb 16 '22 00:02 keeth