tls_session_t *p_tls = NULL;
stats_Create( host, "client_connections", VLC_VAR_INTEGER, STATS_COUNTER );
+ stats_Create( host, "active_connections", VLC_VAR_INTEGER, STATS_COUNTER );
while( !host->b_die )
{
cl->i_activity_date+cl->i_activity_timeout < mdate()) ) ) )
{
httpd_ClientClean( cl );
+ stats_UpdateInteger( host, "active_connections", -1 );
TAB_REMOVE( host->i_client, host->client, cl );
free( cl );
i_client--;
httpd_client_t *cl;
stats_UpdateInteger( host, "client_connections",
1 );
+ stats_UpdateInteger( host, "active_connections", 1 );
cl = httpd_ClientNew( fd, &sock, i_sock_size, p_tls );
p_tls = NULL;
vlc_mutex_lock( &host->lock );