diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-12-26 18:11:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-26 18:11:41 -0500 |
commit | 334a0513dee9abdea5840727b6f327457cb8e524 (patch) | |
tree | 652e70597112d5be2c343fd6d339d1c4552e8d4a | |
parent | 85d78114563d00015ffec35a7d3c854c18707fec (diff) | |
download | tor-334a0513dee9abdea5840727b6f327457cb8e524.tar.gz tor-334a0513dee9abdea5840727b6f327457cb8e524.zip |
Downgrade relay_early-related warning
-rw-r--r-- | src/or/relay.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index e5790dc5eb..4c0b7718d5 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1198,20 +1198,19 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, } if (cell->command != CELL_RELAY_EARLY && !networkstatus_get_param(NULL,"AllowNonearlyExtend",0,0,1)) { -#define EARLY_WARNING_INTERVAL 900 +#define EARLY_WARNING_INTERVAL 3600 static ratelim_t early_warning_limit = RATELIM_INIT(EARLY_WARNING_INTERVAL); char *m; if (cell->command == CELL_RELAY) { ++total_nonearly; if ((m = rate_limit_log(&early_warning_limit, approx_time()))) { - /* XXXX make this a protocol_warn once we're happier with it*/ double percentage = ((double)total_nonearly)/total_n_extend; percentage *= 100; - log_fn(LOG_WARN, domain, "EXTEND cell received, " + log_fn(LOG_PROTOCOL_WARN, domain, "EXTEND cell received, " "but not via RELAY_EARLY. Dropping.%s", m); - log_fn(LOG_WARN, domain, " (We have dropped %.02f%% of all " - "EXTEND cells for this reason)", percentage); + log_fn(LOG_PROTOCOL_WARN, domain, " (We have dropped %.02f%% of " + "all EXTEND cells for this reason)", percentage); tor_free(m); } } else { |