# HG changeset patch # User rbultje # Date 1281620378 0 # Node ID f8c3cb8c503eb7d314e3caca48100d6f0e94aa8e # Parent 75e7dad45e44148db2f27564b3c30602020678b5 Send OPTIONS request at a regular basis to standard RTSP servers as well, this prevents a time-out which closes the TCP connection and kills our session. see "Re: [FFmpeg-devel] [PATCH] rtsp.c: keep-alive" thread on mailinglist. diff -r 75e7dad45e44 -r f8c3cb8c503e rtsp.c --- a/rtsp.c Thu Aug 12 02:01:33 2010 +0000 +++ b/rtsp.c Thu Aug 12 13:39:38 2010 +0000 @@ -1902,9 +1902,7 @@ return ret; /* send dummy request to keep TCP connection alive */ - if ((rt->server_type == RTSP_SERVER_WMS || - rt->server_type == RTSP_SERVER_REAL) && - (av_gettime() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2) { + if ((av_gettime() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2) { if (rt->server_type == RTSP_SERVER_WMS) { ff_rtsp_send_cmd_async(s, "GET_PARAMETER", rt->control_uri, NULL); } else {