summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-02-09 12:50:54 -0500
committerNick Mathewson <nickm@torproject.org>2010-02-09 12:50:54 -0500
commita4065cd832dcbbe034dac1f42db7bdd315a7d734 (patch)
tree159014b56431cb76a46229960d78c797ab99fd36
parent6dd71d314dfe361aab52628e54f3aa9666c115e4 (diff)
parentb2b99a70c005ae4158786d0c30b35dc6db45e9b6 (diff)
downloadtor-a4065cd832dcbbe034dac1f42db7bdd315a7d734.tar.gz
tor-a4065cd832dcbbe034dac1f42db7bdd315a7d734.zip
Merge remote branch 'sebastian/bug925'
-rw-r--r--ChangeLog3
-rw-r--r--src/or/connection.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 339402b926..476c217e4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,9 @@ Changes in version 0.2.2.9-alpha - 2010-??-??
- Actually reject .exit hostnames when we're supposed to be rejecting
them; do not pass them on to the exit server. Bugfix on 0.2.2.7-alpha;
found and diagnosed by Scott Bennett and Downie on or-talk.
+ - Don't spam the controller with log messages when we have no file
+ descriptors available. Rate-limiting for log messages was already
+ implemented in the past.
o Code simplifications and refactoring:
- Generate our manpage and HTML documentation using Asciidoc. This
diff --git a/src/or/connection.c b/src/or/connection.c
index eeb25c1828..cf13345741 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -822,9 +822,9 @@ warn_too_many_conns(void)
log_warn(LD_NET,"Failing because we have %d connections already. Please "
"raise your ulimit -n.", n_conns);
last_warned = now;
+ control_event_general_status(LOG_WARN, "TOO_MANY_CONNECTIONS CURRENT=%d",
+ n_conns);
}
- control_event_general_status(LOG_WARN, "TOO_MANY_CONNECTIONS CURRENT=%d",
- n_conns);
}
/** Bind a new non-blocking socket listening to the socket described