Commit 91719eaa authored by Sébastien Escudier's avatar Sébastien Escudier Committed by Rémi Denis-Courmont

Correctly handle multiple clients in httpd

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
(cherry picked from commit 96db1d57)
parent 4e4a9aee
...@@ -2475,6 +2475,7 @@ retry: ...@@ -2475,6 +2475,7 @@ retry:
if( cl->fd != pufd->fd ) if( cl->fd != pufd->fd )
continue; // we were not waiting for this client continue; // we were not waiting for this client
++nfd;
if( pufd->revents == 0 ) if( pufd->revents == 0 )
continue; // no event received continue; // no event received
...@@ -2503,8 +2504,6 @@ retry: ...@@ -2503,8 +2504,6 @@ retry:
{ {
cl->b_read_waiting = true; cl->b_read_waiting = true;
} }
++nfd;
} }
vlc_mutex_unlock( &host->lock ); vlc_mutex_unlock( &host->lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment