-const char jcc_rcs[] = "$Id: jcc.c,v 2.2 2002/07/12 04:26:17 agotneja Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 2.3 2002/07/18 22:06:12 jongfoster Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/src/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 2.3 2002/07/18 22:06:12 jongfoster
+ * Trivial formatting changes
+ *
* Revision 2.2 2002/07/12 04:26:17 agotneja
* Re-factored 'chat()' to become understandable and maintainable as
* a first step in adding Transparent Proxy functionality.
#include "cgi.h"
#include "loadcfg.h"
#include "urlmatch.h"
+#ifdef FEATURE_ACTIVITY_CONSOLE
+#include "stats.h"
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
const char jcc_h_rcs[] = JCC_H_VERSION;
const char project_h_rcs[] = PROJECT_H_VERSION;
bfd = bind_port_helper(config);
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ init_stats_config(config);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
+
#ifdef FEATURE_GRACEFUL_TERMINATION
while (!g_terminate)
#else
}
#endif /* def FEATURE_TOGGLE */
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ update_stats_config(config);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
+
if (run_loader(csp))
{
log_error(LOG_LEVEL_FATAL, "a loader failed - must exit");
{
struct http_response *rsp;
+#ifdef FEATURE_ACTIVITY_CONSOLE
+ accumulate_stats(STATS_REQUEST, 1);
+#endif /* def FEATURE_ACTIVITY_CONSOLE */
log_error(LOG_LEVEL_GPC, "%s%s", csp->http->hostport, csp->http->path);
if (csp->http->fwd->forward_host)