]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log more about soft-hibernation
authorNick Mathewson <nickm@torproject.org>
Tue, 25 Jan 2011 23:45:13 +0000 (18:45 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 25 Jan 2011 23:45:13 +0000 (18:45 -0500)
changes/bug2181 [new file with mode: 0644]
src/or/hibernate.c

diff --git a/changes/bug2181 b/changes/bug2181
new file mode 100644 (file)
index 0000000..0a09548
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features
+    - Log a little more clearly about the times at which we're no longer
+      accepting new connections.  Resolves bug 2181.
+
index 48a7ce75bac8a9ca946f207836fe8532c5d40d66..1878d5d52d7e4cb07d9e033d0de60e2dcd2ff4fe 100644 (file)
@@ -783,7 +783,8 @@ hibernate_begin(hibernate_state_t new_state, time_t now)
   /* XXX upload rendezvous service descriptors with no intro points */
 
   if (new_state == HIBERNATE_STATE_EXITING) {
-    log_notice(LD_GENERAL,"Interrupt: will shut down in %d seconds. Interrupt "
+    log_notice(LD_GENERAL,"Interrupt: we have stopped accepting new "
+               "connections, and will shut down in %d seconds. Interrupt "
                "again to exit now.", options->ShutdownWaitLength);
     shutdown_time = time(NULL) + options->ShutdownWaitLength;
   } else { /* soft limit reached */
@@ -940,7 +941,8 @@ consider_hibernation(time_t now)
   if (hibernate_state == HIBERNATE_STATE_LIVE) {
     if (hibernate_soft_limit_reached()) {
       log_notice(LD_ACCT,
-                 "Bandwidth soft limit reached; commencing hibernation.");
+                 "Bandwidth soft limit reached; commencing hibernation. "
+                 "No new conncetions will be accepted");
       hibernate_begin(HIBERNATE_STATE_LOWBANDWIDTH, now);
     } else if (accounting_enabled && now < interval_wakeup_time) {
       format_local_iso_time(buf,interval_wakeup_time);