From dd70a79423c73779fe8dd9ed2edaff525fb2bb2d Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 15 Jul 2016 18:59:01 +0200 Subject: [PATCH] Fix PKC not releasing connections to the PMS. Should fix memory, connection and PMS issues. Fixes #75, fixes #64 --- resources/lib/downloadutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/downloadutils.py b/resources/lib/downloadutils.py index e0c8a06e..bf0d942a 100644 --- a/resources/lib/downloadutils.py +++ b/resources/lib/downloadutils.py @@ -254,6 +254,9 @@ class DownloadUtils(): if r.status_code == 204: # No body in the response + # But read (empty) content to release connection back to pool + # (see requests: keep-alive documentation) + r.content return True elif r.status_code == 401: