[FFmpeg-trac] #4392(avformat:new): Reconnect on lost connection for TCP based protocols
FFmpeg
trac at avcodec.org
Wed Mar 25 22:23:11 CET 2015
#4392: Reconnect on lost connection for TCP based protocols
-------------------------------------+------------------------------------
Reporter: liquider | Owner:
Type: enhancement | Status: new
Priority: normal | Component: avformat
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by Cigaes):
This is more complicated than you think.
If the protocol is read-only for the bulk of the transfer, there is
nothing to detect a disconnected remote host. Unlike what you believe,
{{{ifdown}}} or unplugging the cable does not have that effect.
TCP has the {{{SO_KEEPALIVE}}} option to send dummy packets to detect
fallen links like that. It does not do what people believe, it has a very
long timeout (two hours) that is not supposed to be changed.
Clients for that kind of protocol usually need to implement some sort of
user-settable timeout to achieve anything.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4392#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list