From: Sébastien Escudier Date: Mon, 24 Nov 2008 09:59:29 +0000 (+0100) Subject: Correctly handle multiple clients in httpd X-Git-Tag: 1.0.0-pre1~2019 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=96db1d57943e0ffc6af5db3f119898b4d3079e1c;p=vlc Correctly handle multiple clients in httpd Signed-off-by: Rémi Denis-Courmont --- 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 );