mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
esp_prov: Extend the timeout for HTTP connection to SoftAP
This commit is contained in:
@ -31,10 +31,10 @@ class Transport_HTTP(Transport):
|
|||||||
raise RuntimeError("Unable to resolve hostname :" + hostname)
|
raise RuntimeError("Unable to resolve hostname :" + hostname)
|
||||||
|
|
||||||
if certfile is None:
|
if certfile is None:
|
||||||
self.conn = http.client.HTTPConnection(hostname, timeout=30)
|
self.conn = http.client.HTTPConnection(hostname, timeout=45)
|
||||||
else:
|
else:
|
||||||
ssl_ctx = ssl.create_default_context(cafile=certfile)
|
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:
|
try:
|
||||||
print("Connecting to " + hostname)
|
print("Connecting to " + hostname)
|
||||||
self.conn.connect()
|
self.conn.connect()
|
||||||
|
Reference in New Issue
Block a user