[vlc-devel] [PATCH 2/2] demux: adaptive: don't disconnect socket at EOF if connectionClose is false
Zhao Zhili
wantlamy at gmail.com
Wed Aug 9 15:18:20 CEST 2017
Ping...
On Sun, Aug 6, 2017 at 5:44 PM, Zhao Zhili <wantlamy at gmail.com> wrote:
>
> ---
> modules/demux/adaptive/http/HTTPConnection.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp
> b/modules/demux/adaptive/http/HTTPConnection.cpp
> index 03156c634a..f4df1bce8d 100644
> --- a/modules/demux/adaptive/http/HTTPConnection.cpp
> +++ b/modules/demux/adaptive/http/HTTPConnection.cpp
> @@ -196,7 +196,7 @@ ssize_t HTTPConnection::read(void *p_buffer, size_t
> len)
> bytesRead += ret;
>
> if(ret < 0 || (size_t)ret < len || /* set EOF */
> - contentLength == bytesRead )
> + (contentLength == bytesRead && connectionClose))
> {
> socket->disconnect();
> return ret;
> --
> 2.13.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170809/feb187cb/attachment.html>
More information about the vlc-devel
mailing list