Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a sane timeout on connection. #132

Merged
merged 3 commits into from
Mar 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set TIME_OUT to 250 ms.
  • Loading branch information
CelliesProjects committed Mar 13, 2021
commit e51fdc456c9411581aea212f289221d7055da2fd
2 changes: 1 addition & 1 deletion src/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
+ String("Authorization: Basic " + authorization + "\r\n")
+ String("Connection: close\r\n\r\n");

const uint32_t TIMEOUT_MS{500};
const uint32_t TIMEOUT_MS{250};
if(m_f_ssl == false) {
if(client.connect(hostwoext.c_str(), port, TIMEOUT_MS)) {
if(audio_info) audio_info("Connected to server");
Expand Down