#11662(undetermined:new): ffplay does not detect when the remote side closes the connection
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Type: defect Status: new | Priority: minor Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: When the remote side closes the TCP connection (sends a FIN), ffplay does not detect it properly. Although the thread handling the network input exits, the main process continues running and displaying elapsed time as if the connection were still active. This leads to a situation where ffplay does not stop even though the stream has ended on the remote side. How to reproduce: start ffplay and stop the server at remote end. {{{ % ffplay http:// ffplay version 2025-07-01-git-11d1b71c31-essentials_build-www.gyan.dev Copyright (c) 2003-2025 the FFmpeg developers built with gcc 15.1.0 (Rev4, Built by MSYS2 project) }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Owner: (none) Type: defect | Status: closed Priority: minor | Component: | undetermined Version: unspecified | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Marton Balint): * resolution: => invalid * status: new => closed Comment: FFplay does not exit on the end of the stream, this is by design. You can use the {{{-autoexit}}} command line flag to make it exit on stream end. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Owner: (none) Type: defect | Status: closed Priority: minor | Component: | undetermined Version: unspecified | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by guest): Thank you very much for the response. Does it make sense to keep running even though the incoming stream has been interrupted and there’s no attempt to reconnect? -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Owner: (none) Type: defect | Status: closed Priority: minor | Component: | undetermined Version: unspecified | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by guest): Note: I created a test script on Windows that tries to connect to a non- running service, and interestingly, in some cases, the process hangs and doesn't exit with an error. :loop ffplay -autoexit -i http://1.2.3.4:2222 timeout 3 goto loop -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Owner: (none) Type: defect | Status: closed Priority: minor | Component: | undetermined Version: unspecified | Resolution: invalid Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by guest): I've tested this on both Linux and Windows, and the issue only appears on Windows -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11662: ffplay does not detect when the remote side closes the connection -------------------------------------+------------------------------------- Reporter: guest | Owner: (none) Type: defect | Status: reopened Priority: minor | Component: | undetermined Version: unspecified | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by guest): * resolution: invalid => * status: closed => reopened -- Ticket URL: <https://trac.ffmpeg.org/ticket/11662#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg