[FFmpeg-trac] #7975(avformat:new): HLS HTTP PUT fails with http_persistent and connection closed

FFmpeg trac at avcodec.org
Sun Jul 28 12:56:21 EEST 2019

#7975: HLS HTTP PUT fails with http_persistent and connection closed
             Reporter:  ianklassen  |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  hls http    |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by stevenliu):

 Replying to [comment:8 ianklassen]:
 > I've attached a patch that first loads the headers from the server
 before attempting to reuse the HTTP connection. If the server sends
 "close" in the "Connection" header then the TCP connection is closed and
 then reconnected.
 > Please review and let me know what you think.

 I will modify the hlsenc module, make mpegts and fmp4 to the same
 workflow:  write the data into buffer, and flush buffer to AVIOContext, if
 the AVIO return failed, it will reopen a new file description for flush,
 this maybe better. Because it will not touch other module workflow which
 use http protocol.

 Of course, this patch it ok to me if other reviewer ok :D

 > Thanks.

Ticket URL: <https://trac.ffmpeg.org/ticket/7975#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list