[vlc-commits] httpd: Don't treat 0 bytes sent as a dead connection
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jun 22 15:24:08 CEST 2020
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | 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)
More information about the vlc-commits
mailing list