[FFmpeg-trac] #8546(avformat:open): http_persistent not honored when encryption is enabled
FFmpeg
trac at avcodec.org
Sat Mar 7 03:22:59 EET 2020
#8546: http_persistent not honored when encryption is enabled
-------------------------------------+-------------------------------------
Reporter: vschweitzer | Owner: stevenliu
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: http | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by stevenliu):
Replying to [comment:4 vschweitzer]:
> === Update ===
>
> As it turns out, my bisection method is sligtly faulty;
> this changes nothing about the actual bug, but might
> hinder the process of finding it.
>
> The behavior as seen with Torndado only appears on Windows
> (probably due to differences in handling async operations).
> Although this is still not expected behavior, this might
> be caused by a different, (semi-)related issue.
>
> The actual bug described here (a tcp connection being
> opened and closed for each file when encrypted, even
> though http_persist is enabled) still appears and does
> so even in FFmpeg version prior to `1965161`.
> This can be observed the easiest by using wireshark,
> showing only packets that involve the address or port
> streamed to (when listening on localhost,
> `tcp.port == 45000` works well, if the default port is
> used). After each segment is pushed, a tcp packet with
> FIN ACK flags set is sent, causing the connection to close.
This should support in libavformat/crypto.c
not only hlsenc but also hls.c have the same problem.
so this should be fix at the crypto module.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8546#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list