mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Oops. Make warn_too_many_conns() actually work.
svn:r16686
This commit is contained in:
parent
4eab76f074
commit
730f1b6d3f
@ -760,7 +760,8 @@ static void
|
||||
warn_too_many_conns(void)
|
||||
{
|
||||
#define WARN_TOO_MANY_CONNS_INTERVAL (6*60*60)
|
||||
time_t last_warned = 0, now = time(NULL);
|
||||
static time_t last_warned = 0;
|
||||
time_t now = time(NULL);
|
||||
int n_conns = get_n_open_sockets();
|
||||
if (last_warned + WARN_TOO_MANY_CONNS_INTERVAL < now) {
|
||||
log_warn(LD_NET,"Failing because we have %d connections already. Please "
|
||||
|
@ -406,7 +406,7 @@ _c_hist_compare(const void **_a, const void **_b)
|
||||
}
|
||||
|
||||
/*DOCDOC*/
|
||||
#define GEOIP_MIN_OBSERVATION_TIME (12*60*60)
|
||||
#define GEOIP_MIN_OBSERVATION_TIME (60*60)
|
||||
|
||||
static INLINE unsigned
|
||||
round_to_next_multiple_of(unsigned number, unsigned divisor)
|
||||
|
Loading…
Reference in New Issue
Block a user