[vlc-devel] [PATCH 2/2] demux: adaptive: don't disconnect socket at EOF if connectionClose is false
Zhao Zhili
wantlamy at gmail.com
Sun Aug 6 11:44:18 CEST 2017
---
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/20170806/02c69041/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-demux-adaptive-don-t-disconnect-socket-at-EOF-if-con.patch
Type: application/octet-stream
Size: 928 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170806/02c69041/attachment.obj>
More information about the vlc-devel
mailing list