Skip to content

Commit 534521a

Browse files
committed
RTSPServer: improve logging
1 parent ee7e4e2 commit 534521a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/AudioTools/Communication/RTSP/RTSPServer.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,14 @@ class RTSPServer {
307307
lastRequestTime = millis();
308308
LOGD("Request handling successful");
309309
} else {
310-
LOGI("Request handling timed out or no data yet");
310+
// Only log timeout if we're actively streaming, not during setup phase
311+
if (rtsp->isStreaming()) {
312+
LOGI("Request handling timed out or no data yet");
313+
}
311314
}
312315

313316
// If streaming, check for session timeout
314-
if (sessionTimeoutMs > 0 && m_sessionTrtsp->isStreaming()) {
317+
if (sessionTimeoutMs > 0 && rtsp->isStreaming()) {
315318
if ((millis() - lastRequestTime) > sessionTimeoutMs) {
316319
LOGW("Session timeout: no client request received for 20 seconds, closing session");
317320
break;

0 commit comments

Comments
 (0)