Treat a keepalive timeout the same as if the client had closed the connection. Total timeout is 35 + 5 * 5 = 60(?) seconds.

This commit is contained in:
Mike Brady
2023-02-13 08:34:55 +00:00
parent 72e5b5309b
commit 551734b398
+6
View File
@@ -1385,6 +1385,12 @@ enum rtsp_read_request_response rtsp_read_request(rtsp_conn_info *conn, rtsp_mes
conn->connection_number);
continue;
}
if (errno == ETIMEDOUT) {
debug(1, "Connection %d: ETIMEDOUT -- keepalive timeout.", conn->connection_number);
reply = rtsp_read_request_response_channel_closed;
// Note: the socket will be closed when the thread exits
goto shutdown;
}
if (errno != ECONNRESET) {
char errorstring[1024];
strerror_r(errno, (char *)errorstring, sizeof(errorstring));