From 2edec6359753e55cb1cd1a824d32e20e6096b9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 5 Jul 2015 22:00:11 +0000 Subject: [PATCH] #ifdef all parts belonging to the connection-state debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Stefan Bühler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2997 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/server.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 50893755..d97541ba 100644 --- a/src/server.c +++ b/src/server.c @@ -1262,7 +1262,9 @@ int main (int argc, char **argv) { min_ts = time(NULL); if (min_ts != srv->cur_ts) { +#ifdef DEBUG_CONNECTION_STATES int cs = 0; +#endif connections *conns = srv->conns; handler_t r; @@ -1368,7 +1370,7 @@ int main (int argc, char **argv) { con->bytes_written_cur_second = 0; *(con->conf.global_bytes_per_second_cnt_ptr) = 0; -#if 0 +#if DEBUG_CONNECTION_STATES if (cs == 0) { fprintf(stderr, "connection-state: "); cs = 1; @@ -1381,7 +1383,9 @@ int main (int argc, char **argv) { #endif } +#ifdef DEBUG_CONNECTION_STATES if (cs == 1) fprintf(stderr, "\n"); +#endif } }