esp_prov: Extend the timeout for HTTP connection to SoftAP

This commit is contained in:
Angus Gratton
2020-06-26 14:21:11 +10:00
committed by bot
parent 6d5dc5def3
commit de17289461

View File

@ -34,9 +34,9 @@ class Transport_HTTP(Transport):
raise RuntimeError("Unable to resolve hostname :" + hostname) raise RuntimeError("Unable to resolve hostname :" + hostname)
if ssl_context is None: if ssl_context is None:
self.conn = HTTPConnection(hostname, timeout=30) self.conn = HTTPConnection(hostname, timeout=45)
else: else:
self.conn = HTTPSConnection(hostname, context=ssl_context, timeout=30) self.conn = HTTPSConnection(hostname, context=ssl_context, timeout=45)
try: try:
print("Connecting to " + hostname) print("Connecting to " + hostname)
self.conn.connect() self.conn.connect()