HTTP method ignored on retry
|Reported by:||vschweitzer||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
When FFmpeg fails to upload a file to a server using the
specified method (in this example PUT) it retries using a different method.
This behavior was tested on NGINX with the same config as in
#8561. The configuration is also listed in the comments.
For a server running on port 45000 the following command is used:
ffmpeg -y -hide_banner -f lavfi -i color=c=black:s=1920x1080:r=25 -vcodec libx264 -f hls -method PUT -http_persistent 1 http://127.0.0.1:45000/streams/index.m3u8
Note that the method is set to PUT.
If one segment fails to upload, FFmpeg will retry:
[hls @ 00000272de1b4f00] Opening 'http://127.0.0.1:45000/streams/index0.ts' for writing [hls @ 00000272de1b4f00] upload segment failed, will retry with a new http session. [hls @ 00000272de1b4f00] Opening 'http://127.0.0.1:45000/streams/index0.ts' for writing
(Full uncut output attached)
This retry will be made via POST request as opposed to the