From f8e5e70617fa07ad20ae558247c73510c77c88b9 Mon Sep 17 00:00:00 2001 From: Wolle Date: Mon, 18 Jul 2022 05:25:48 +0200 Subject: [PATCH] Trouble with connection timeouts #342 --- src/Audio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Audio.cpp b/src/Audio.cpp index 04cebeb7..76ed7908 100644 --- a/src/Audio.cpp +++ b/src/Audio.cpp @@ -452,7 +452,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) { strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); strcat(rqh, "Connection: keep-alive\r\n\r\n"); - if(ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR == 0 && ESP_ARDUINO_VERSION_PATCH == 3){ + if(ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR == 0 && ESP_ARDUINO_VERSION_PATCH >= 3){ m_timeout_ms_ssl = UINT16_MAX; // bug in v2.0.3 if hostwoext is a IPaddr not a name m_timeout_ms = UINT16_MAX; // [WiFiClient.cpp:253] connect(): select returned due to timeout 250 ms for fd 48 } @@ -4471,4 +4471,4 @@ int Audio::ts_parsePacket(uint8_t *packet, uint8_t *data) return read; } //---------------------------------------------------------------------------------------------------------------------- -//---------------------------------------------------------------------------------------------------------------------- \ No newline at end of file +//----------------------------------------------------------------------------------------------------------------------