avformat/hls: enable http_multiple only for http/1.1 servers
authorAman Gupta <aman@tmm1.net>
Tue, 26 Dec 2017 04:37:55 +0000 (20:37 -0800)
committerAman Gupta <aman@tmm1.net>
Tue, 26 Dec 2017 22:53:19 +0000 (14:53 -0800)
commit1dd82edea5ab689f9a94e14cb2cf6d382cbf9ee6
tree9219d44099cae636f80a858bc85ab549c6b0dbc3
parent039007c928b4207b8bdde31c80c57dc7b917dd2f
avformat/hls: enable http_multiple only for http/1.1 servers

Some http/1.0 implementations, like python's SimpleHTTPServer, can only support one client connection at a time. Making a second request while the first is still connected leads to a deadlock.

This change enables multiple connections for http/1.1 servers only, which need to support keepalive by default and should have no problem with concurrent requests.

Signed-off-by: Aman Gupta <aman@tmm1.net>
doc/demuxers.texi
libavformat/hls.c