|
25 | 25 | #include "apr_optional.h" |
26 | 26 | #include "mod_log_config.h" |
27 | 27 |
|
28 | | -#ifdef APLOG_USE_MODULE |
29 | | -APLOG_USE_MODULE(security2); |
30 | | -#endif |
| 28 | +/* |
| 29 | + * #ifdef APLOG_USE_MODULE |
| 30 | + * APLOG_USE_MODULE(security2); |
| 31 | + * #endif |
| 32 | + */ |
31 | 33 |
|
32 | 34 | #include "msc_logging.h" |
33 | 35 | #include "msc_util.h" |
@@ -1437,6 +1439,14 @@ static void modsec_register_operator(const char *name, void *fn_init, void *fn_e |
1437 | 1439 | } |
1438 | 1440 | } |
1439 | 1441 |
|
| 1442 | +#if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2 |
| 1443 | +#else |
| 1444 | +typedef struct { |
| 1445 | + int child_num; |
| 1446 | + int thread_num; |
| 1447 | +} sb_handle; |
| 1448 | +#endif |
| 1449 | + |
1440 | 1450 | /** |
1441 | 1451 | * \brief Connetion hook to limit the number of |
1442 | 1452 | * connections in BUSY state |
@@ -1484,7 +1494,7 @@ static int hook_connection_early(conn_rec *conn) |
1484 | 1494 | } |
1485 | 1495 | } |
1486 | 1496 |
|
1487 | | - ap_log_cerror(APLOG_MARK, APLOG_TRACE3, 0, conn, |
| 1497 | + ap_log_cerror(APLOG_MARK, APLOG_WARNING, 0, conn, |
1488 | 1498 | "ModSecurity: going to loop through %d servers with %d threads", |
1489 | 1499 | server_limit, thread_limit); |
1490 | 1500 | for (i = 0; i < server_limit; ++i) { |
@@ -1516,7 +1526,7 @@ static int hook_connection_early(conn_rec *conn) |
1516 | 1526 | } |
1517 | 1527 | } |
1518 | 1528 |
|
1519 | | - ap_log_cerror(APLOG_MARK, APLOG_TRACE3, 0, conn, |
| 1529 | + ap_log_cerror(APLOG_MARK, APLOG_WARNING, 0, conn, |
1520 | 1530 | "ModSecurity: threads in READ: %ld of %ld, WRITE: %ld of %ld, IP: %s", |
1521 | 1531 | ip_count_r, conn_read_state_limit, ip_count_w, conn_write_state_limit, client_ip); |
1522 | 1532 |
|
|
0 commit comments