Keep session alive

main
Bob Mottram 2020-06-23 23:15:55 +01:00
parent b7653b9eb1
commit 370bb4b1cf
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ baseDirectory = None
def createSession(proxyType: str): def createSession(proxyType: str):
session = None session = None
try: try:
session = requests.session() session = requests.session(config={'keep_alive': True})
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
print('WARN: requests error during createSession') print('WARN: requests error during createSession')
print(e) print(e)