From 370bb4b1cfc6f168817c47cd531b5c58f160f33f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Jun 2020 23:15:55 +0100 Subject: [PATCH] Keep session alive --- session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.py b/session.py index f6c92e58..401f0ec4 100644 --- a/session.py +++ b/session.py @@ -19,7 +19,7 @@ baseDirectory = None def createSession(proxyType: str): session = None try: - session = requests.session() + session = requests.session(config={'keep_alive': True}) except requests.exceptions.RequestException as e: print('WARN: requests error during createSession') print(e)