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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Jun 18 13:41:18 CEST 2020


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

diff --git a/src/network/httpd.c b/src/network/httpd.c
index e93f3c09c3..b2267e5de2 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1612,11 +1612,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)
-- 
2.20.1



More information about the vlc-devel mailing list