forked from indymedia/epicyon
Keep session alive
parent
b7653b9eb1
commit
370bb4b1cf
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue