Opened 9 years ago
Closed 7 years ago
#5094 closed defect (invalid)
ffserver HTTP chunked encoding
Reported by: | Eugene | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffserver |
Version: | git-master | Keywords: | http |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I'm trying to stream video to ffserver via HTTP. But it doesn't work because ffserver is unable to parse chunked encoding correctly. It reads chunk length, then reads chunk itself but not reads chunk footer "\r\n". In the next iteration it reads the length of the next chunk size, but this is a footer of the first chunk. Length parsed is 0. ffserver decides stream has ended and closes it.
- Reading chunk length https://github.com/FFmpeg/FFmpeg/blob/master/ffserver.c#L2603
- Reading chunk data
https://github.com/FFmpeg/FFmpeg/blob/master/ffserver.c#L2631
- Missed reading of "\r\n"
https://tools.ietf.org/html/rfc2616#section-3.6.1
chunk = chunk-size [ chunk-extension ] CRLF
chunk-data CRLF
ffserver was removed from git master, closing bug as invalid