From 04b00f9e8af4805e0eecac188caab16c0465638b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 8 Mar 2016 13:13:25 -0800 Subject: [PATCH] Fix the RTSP payload timeout being too aggressive --- limelight-common/RtspConnection.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/limelight-common/RtspConnection.c b/limelight-common/RtspConnection.c index 159d7fb..d5dcc55 100644 --- a/limelight-common/RtspConnection.c +++ b/limelight-common/RtspConnection.c @@ -161,9 +161,8 @@ static int transactRtspMessageEnet(PRTSP_MESSAGE request, PRTSP_MESSAGE response // Wait for the payload if we're expecting some if (expectingPayload) { - // Only wait 1 second since the packets should be here immediately - // after the header. - if (enet_host_service(client, &event, 1000) <= 0 || + // The payload comes in a second packet + if (enet_host_service(client, &event, RTSP_TIMEOUT_SEC * 1000) <= 0 || event.type != ENET_EVENT_TYPE_RECEIVE) { Limelog("Failed to receive RTSP reply payload\n"); ret = 0;