X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fweb_server.c;h=fbfc034ab3eaa1f1e8a8ad1ac016c90309fc97b9;hb=6372ed837298a34f6d16e0cde929822879863195;hp=0b8b6e86918bdaaf957b60f1698b188ea95294ed;hpb=2af71a661fa0bd677c6fddf6f5170ea266d8b8fb;p=netdata.git diff --git a/src/web_server.c b/src/web_server.c index 0b8b6e86..fbfc034a 100755 --- a/src/web_server.c +++ b/src/web_server.c @@ -1,6 +1,6 @@ -// enable strcasestr() -#define _GNU_SOURCE - +#ifdef HAVE_CONFIG_H +#include +#endif #include #include #include @@ -16,7 +16,7 @@ #include "common.h" #include "log.h" -#include "config.h" +#include "appconfig.h" #include "url.h" #include "web_buffer.h" #include "web_client.h" @@ -136,6 +136,9 @@ int create_listen_socket6(int port, int listen_backlog) void *socket_listen_main(void *ptr) { if(ptr) { ; } + + info("WEB SERVER thread created with task id %d", gettid()); + struct web_client *w; struct timeval tv; int retval; @@ -193,8 +196,6 @@ void *socket_listen_main(void *ptr) error("%llu: Cannot request detach of newly created web client thread.", w->id); w->obsolete = 1; } - - log_access("%llu: %s port %s connected", w->id, w->client_ip, w->client_port); } else debug(D_WEB_CLIENT, "LISTENER: select() didn't do anything."); @@ -206,7 +207,6 @@ void *socket_listen_main(void *ptr) // cleanup unused clients for(w = web_clients; w ; w = w?w->next:NULL) { if(w->obsolete) { - log_access("%llu: %s port %s disconnected", w->id, w->client_ip, w->client_port); debug(D_WEB_CLIENT, "%llu: Removing client.", w->id); // pthread_join(w->thread, NULL); w = web_client_free(w);