esp_prov: Extend the timeout for HTTP connection to SoftAP
This commit is contained in:
parent
7358470ae9
commit
e0fc7b1c48
1 changed files with 2 additions and 2 deletions
|
@ -31,10 +31,10 @@ class Transport_HTTP(Transport):
|
|||
raise RuntimeError("Unable to resolve hostname :" + hostname)
|
||||
|
||||
if certfile is None:
|
||||
self.conn = http.client.HTTPConnection(hostname, timeout=30)
|
||||
self.conn = http.client.HTTPConnection(hostname, timeout=45)
|
||||
else:
|
||||
ssl_ctx = ssl.create_default_context(cafile=certfile)
|
||||
self.conn = http.client.HTTPSConnection(hostname, context=ssl_ctx, timeout=30)
|
||||
self.conn = http.client.HTTPSConnection(hostname, context=ssl_ctx, timeout=45)
|
||||
try:
|
||||
print("Connecting to " + hostname)
|
||||
self.conn.connect()
|
||||
|
|
Loading…
Reference in a new issue