Commit cf376a52 authored by Zhao Zhili's avatar Zhao Zhili Committed by François Cartegnie

demux: adaptive: don't disconnect socket at EOF if connectionClose is false

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent f25cc7fb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment