[vlc-devel] commit: Correctly handle multiple clients in httpd ( Sébastien Escudier )

git version control git at videolan.org
Wed Nov 26 19:40:48 CET 2008


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Mon Nov 24 10:59:29 2008 +0100| [96db1d57943e0ffc6af5db3f119898b4d3079e1c] | committer: Rémi Denis-Courmont 

Correctly handle multiple clients in httpd

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

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

 src/network/httpd.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 0e5406b..1149057 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 );
 




More information about the vlc-devel mailing list