From 96db1d57943e0ffc6af5db3f119898b4d3079e1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Mon, 24 Nov 2008 10:59:29 +0100 Subject: [PATCH] Correctly handle multiple clients in httpd MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/network/httpd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/httpd.c b/src/network/httpd.c index 0e5406b0d2..11490570ed 100644 --- a/src/network/httpd.c +++ b/src/network/httpd.c @@ -2474,6 +2474,7 @@ retry: if( cl->fd != pufd->fd ) continue; // we were not waiting for this client + ++nfd; if( pufd->revents == 0 ) continue; // no event received @@ -2502,8 +2503,6 @@ retry: { cl->b_read_waiting = true; } - - ++nfd; } vlc_mutex_unlock( &host->lock ); -- 2.39.2