2019独角兽企业重金招聘Python工程师标准>>>
程序报错
MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=53742): Max retries exceeded with url: /session/7e0b607f-022e-4464-9eb3-461844f59b84/window/maximize (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000000002EBBAC8>: Failed to establish a new connection: [Errno 10061] ',
默认的http connection是keep-alive的
#关闭多余的连接
import requests
s = requests.session()
s.keep_alive = False