[vlc-commits] httpd: Don't treat 0 bytes sent as a dead connection

Hugo Beauzée-Luyssen git at videolan.org
Sun Sep 6 09:20:25 CEST 2020


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jun 18 12:07:44 2020 +0200| [db395aad2d0b269268d97555a70f6467bd495295] | committer: Rémi Denis-Courmont

httpd: Don't treat 0 bytes sent as a dead connection

(cherry picked from commit f7e891e3984180cd79d48d4695d13b3f473f6e30)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=db395aad2d0b269268d97555a70f6467bd495295
---

 src/network/httpd.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index cc11a83065..3197fb2ec9 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1599,11 +1599,6 @@ static int httpd_ClientSend(httpd_client_t *cl)
     i_len = httpd_NetSend(cl, &cl->p_buffer[cl->i_buffer],
                            cl->i_buffer_size - cl->i_buffer);
 
-    if (i_len == 0) {
-        cl->i_state = HTTPD_CLIENT_DEAD; /* connection closed */
-        return 0;
-    }
-
     if (i_len < 0) {
 #if defined(_WIN32)
         if (WSAGetLastError() == WSAEWOULDBLOCK)



More information about the vlc-commits mailing list