Fix PKC not releasing connections to the PMS. Should fix memory, connection and PMS issues. Fixes #75, fixes #64
This commit is contained in:
parent
a84ea2f0b5
commit
dd70a79423
1 changed files with 3 additions and 0 deletions
|
@ -254,6 +254,9 @@ class DownloadUtils():
|
||||||
|
|
||||||
if r.status_code == 204:
|
if r.status_code == 204:
|
||||||
# No body in the response
|
# No body in the response
|
||||||
|
# But read (empty) content to release connection back to pool
|
||||||
|
# (see requests: keep-alive documentation)
|
||||||
|
r.content
|
||||||
return True
|
return True
|
||||||
|
|
||||||
elif r.status_code == 401:
|
elif r.status_code == 401:
|
||||||
|
|
Loading…
Reference in a new issue