mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #90] Spotipy Object is not threadsafe with respect to request sessions and connection pools #40
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jdwilkin on GitHub (Apr 15, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/90
When a single Spotipy object is used in multiple threads talking to the same endpoint, depending on timing, connection pool closed errors can occur. This happens because after every request made in _internal_call "close" is called on the request connection which in turn closes the session's pool for that end point. If another thread has already come in and been given a reference to that pool then tries to use it later, it will get this pool closed exception
@jdwilkin commented on GitHub (May 12, 2016):
after going through the pull requests it seems there is already one that addresses this, (at least it appears to) #68
@shillshocked commented on GitHub (Oct 23, 2019):
Yeah, it's still an issue. This repo doesn't seem to be properly maintained any more as pull requests aren't being honored.
@stephanebruckert commented on GitHub (Jan 17, 2020):
Hey @shillshocked, @jdwilkin, thanks for reporting this. The package is maintained again, any chance you can create a new PR?