Skip to content

Commit f8e5e70

Browse files
authored
Trouble with connection timeouts #342
1 parent 1037680 commit f8e5e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Audio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
452452
strcat(rqh, "User-Agent: Mozilla/5.0\r\n");
453453
strcat(rqh, "Connection: keep-alive\r\n\r\n");
454454

455-
if(ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR == 0 && ESP_ARDUINO_VERSION_PATCH == 3){
455+
if(ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR == 0 && ESP_ARDUINO_VERSION_PATCH >= 3){
456456
m_timeout_ms_ssl = UINT16_MAX; // bug in v2.0.3 if hostwoext is a IPaddr not a name
457457
m_timeout_ms = UINT16_MAX; // [WiFiClient.cpp:253] connect(): select returned due to timeout 250 ms for fd 48
458458
}
@@ -4471,4 +4471,4 @@ int Audio::ts_parsePacket(uint8_t *packet, uint8_t *data)
44714471
return read;
44724472
}
44734473
//----------------------------------------------------------------------------------------------------------------------
4474-
//----------------------------------------------------------------------------------------------------------------------
4474+
//----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)