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

git version control git at videolan.org
Wed Nov 26 19:43:28 CET 2008


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

Correctly handle multiple clients in httpd

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>
(cherry picked from commit 96db1d57943e0ffc6af5db3f119898b4d3079e1c)

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

 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 62775d6..42226c9 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2475,6 +2475,7 @@ retry:
 
             if( cl->fd != pufd->fd )
                 continue; // we were not waiting for this client
+            ++nfd;
             if( pufd->revents == 0 )
                 continue; // no event received
 
@@ -2503,8 +2504,6 @@ retry:
             {
                 cl->b_read_waiting = true;
             }
-
-            ++nfd;
         }
         vlc_mutex_unlock( &host->lock );
 




More information about the vlc-devel mailing list