Skip to content

v0.16.4 - Hot-fix: Do not share request.Session between processes

Compare
Choose a tag to compare
@Wauplin Wauplin released this 07 Jul 14:38
· 614 commits to main since this release

Full Changelog: v0.16.3...v0.16.4

Hotfix to avoid sharing requests.Session between processes. More information in #1545. Internally, we create a Session object per thread to benefit from the HTTPSConnectionPool (i.e. do not reopen connection between calls). Due to an implementation bug, the Session object from the main thread was shared if a fork of the main process happened. The shared Session gets corrupted in the process, leading to some random ConnectionErrors in rare occasions.

Check out these release notes to learn more about the v0.16 release.