vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Thu Jun 18 
12:07:44 2020 +0200| [f7e891e3984180cd79d48d4695d13b3f473f6e30] | committer: 
Hugo Beauzée-Luyssen

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

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

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

diff --git a/src/network/httpd.c b/src/network/httpd.c
index d4b188bad3..e11c9aab99 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1610,11 +1610,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)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to