#ifdef all parts belonging to the connection-state debugging

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2997 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.36
Stefan Bühler 2015-07-05 22:00:11 +00:00
parent c31bf21f97
commit 2edec63597
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
}