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
Next Next commit
Lower TIMOUT to 500ms.
  • Loading branch information
CelliesProjects committed Mar 13, 2021
commit 1e051b9a19f71e2d7d132f4a09f3ef0e52e212d7
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{1000};
const uint32_t TIMEOUT_MS{500};
if(m_f_ssl == false) {
if(client.connect(hostwoext.c_str(), port, TIMEOUT_MS)) {
if(audio_info) audio_info("Connected to server");
Expand Down