mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_prov: Extend the timeout for HTTP connection to SoftAP
This commit is contained in:
parent
7934df3a6f
commit
ab55bea55a
@ -34,9 +34,9 @@ class Transport_HTTP(Transport):
|
||||
raise RuntimeError("Unable to resolve hostname :" + hostname)
|
||||
|
||||
if ssl_context is None:
|
||||
self.conn = HTTPConnection(hostname, timeout=30)
|
||||
self.conn = HTTPConnection(hostname, timeout=45)
|
||||
else:
|
||||
self.conn = HTTPSConnection(hostname, context=ssl_context, timeout=30)
|
||||
self.conn = HTTPSConnection(hostname, context=ssl_context, timeout=45)
|
||||
try:
|
||||
print("Connecting to " + hostname)
|
||||
self.conn.connect()
|
||||
|
Loading…
Reference in New Issue
Block a user