[vlc-devel] httpd server unresponsive if no url registered

Sébastien Escudier sebastien-devel at celeos.eu
Wed Mar 17 18:09:53 CET 2010


I noticed that httpd thread is unresponsive when no url is registered.
is this expected ?
The potential issue, in this case, is that a request may be waiting to be
handled, and it will be handled as soon as a url is registered.
It would be better if 404 not found is sent in this case.

while( host->i_url <= 0 && host->i_ref > 0 )
    vlc_cond_wait( &host->wait, &host->lock );

in network/httpd.c line 2061 is fixing the issue.



More information about the vlc-devel mailing list