ota.cpp: streaming timeout changed

This commit is contained in:
Klaus K Wilting committed 2018-11-04 21:12:19 +01:00
1 parent f2513584e2
commit 26f4bd8f09
1 file changed
+1
+1
View File
@@ -155,6 +155,7 @@ bool do_ota_update() {
while (redirect) { while (redirect) {
if (currentHost != prevHost) { if (currentHost != prevHost) {
client.stop(); client.stop();
client.setTimeout(RESPONSE_TIMEOUT_MS);
client.setCACert(bintray.getCertificate(currentHost)); client.setCACert(bintray.getCertificate(currentHost));
if (!client.connect(currentHost.c_str(), port)) { if (!client.connect(currentHost.c_str(), port)) {
ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s", ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s",