瀏覽代碼

provide a more useful warn message when our onion queue
gets full.


svn:r5881

Roger Dingledine 18 年之前
父節點
當前提交
e05d4e45d2
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/or/onion.c

+ 5 - 1
src/or/onion.c

@@ -57,7 +57,11 @@ onion_pending_add(circuit_t *circ)
   tor_assert(!ol_tail->next);
 
   if (ol_length >= get_options()->MaxOnionsPending) {
-    notice(LD_GENERAL,"Already have %d onions queued. Closing.", ol_length);
+    warn(LD_GENERAL,
+         "Your computer is too slow to handle this many circuit "
+         "creation requests! Please consider using the "
+         "MaxAdvertisedBandwidth config option or choosing a more "
+         "restricted exit policy.");
     tor_free(tmp);
     return -1;
   }