summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-10-26 16:45:15 +0200
committerNick Mathewson <nickm@torproject.org>2014-10-28 14:13:25 -0400
commit14d59fdc1009dcbcbf6e30c9eee7c3333d68fbd7 (patch)
treee9332a0ccb532d3617beae596f3d61bdf6dc3386
parentf1ebe6bda4f541a54648d02e2d51fc9073c3786d (diff)
downloadtor-14d59fdc1009dcbcbf6e30c9eee7c3333d68fbd7.tar.gz
tor-14d59fdc1009dcbcbf6e30c9eee7c3333d68fbd7.zip
Updating message that warns about running out of sockets we can use.
-rw-r--r--src/or/connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 5c1b6d9bba..a2aad6fb48 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -894,9 +894,9 @@ create_unix_sockaddr(const char *listenaddress, char **readable_address,
}
#endif /* HAVE_SYS_UN_H */
-/** Warn that an accept or a connect has failed because we're running up
- * against our ulimit. Rate-limit these warnings so that we don't spam
- * the log. */
+/** Warn that an accept or a connect has failed because we're running out of
+ * TCP sockets we can use on current system. Rate-limit these warnings so
+ * that we don't spam the log. */
static void
warn_too_many_conns(void)
{
@@ -906,7 +906,7 @@ warn_too_many_conns(void)
if ((m = rate_limit_log(&last_warned, approx_time()))) {
int n_conns = get_n_open_sockets();
log_warn(LD_NET,"Failing because we have %d connections already. Please "
- "raise your ulimit -n.%s", n_conns, m);
+ "read doc/TUNING for guidance.%s", n_conns, m);
tor_free(m);
control_event_general_status(LOG_WARN, "TOO_MANY_CONNECTIONS CURRENT=%d",
n_conns);