diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-09 15:35:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-09 15:35:37 +0000 |
commit | 30422b5df1cdad92460d6934d1f9c7b2474a6f0d (patch) | |
tree | af343f8b097ba591f51686dafd2041610c4090f8 /src/or/connection.c | |
parent | 60a0ae198d4eb63ab8af4e3d789d66884b0219ad (diff) | |
download | tor-30422b5df1cdad92460d6934d1f9c7b2474a6f0d.tar.gz tor-30422b5df1cdad92460d6934d1f9c7b2474a6f0d.zip |
Rate-limit "too-many-sockets" messages; they can get needlessly verbose.
svn:r16480
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 3b032eddd1..64b866748c 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -762,8 +762,8 @@ warn_too_many_conns(void) { #define WARN_TOO_MANY_CONNS_INTERVAL (6*60*60) time_t last_warned = 0, now = time(NULL); + int n_conns = get_n_open_sockets(); if (last_warned + WARN_TOO_MANY_CONNS_INTERVAL < now) { - int n_conns = get_n_open_sockets(); log_warn(LD_NET,"Failing because we have %d connections already. Please " "raise your ulimit -n.", n_conns); last_warned = now; |