From 26f4bd8f0987046e631389335ec00df20cd1f789 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 4 Nov 2018 21:12:19 +0100 Subject: [PATCH] ota.cpp: streaming timeout changed --- src/ota.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ota.cpp b/src/ota.cpp index c1489371..60c07dca 100644 --- a/src/ota.cpp +++ b/src/ota.cpp @@ -155,6 +155,7 @@ bool do_ota_update() { while (redirect) { if (currentHost != prevHost) { client.stop(); + client.setTimeout(RESPONSE_TIMEOUT_MS); client.setCACert(bintray.getCertificate(currentHost)); if (!client.connect(currentHost.c_str(), port)) { ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s",