Skip to content

Commit

Permalink
fixed timeout for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Nov 6, 2024
1 parent e08dbdd commit 6bdd66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZeDMDWiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool ZeDMDWiFi::openTcpConnection()
if (m_tcpSocket < 0) return false;

#if defined(_WIN32) || defined(_WIN64)
DWORD timeout = timeoutMs;
DWORD timeout = 3000; // 3 seconds
setsockopt(m_tcpSocket, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
setsockopt(m_tcpSocket, SOL_SOCKET, SO_SNDTIMEO, (const char*)&timeout, sizeof(timeout));
#else
Expand Down

0 comments on commit 6bdd66e

Please sign in to comment.