[or-cvs] provide a more useful warn message when our onion queue

arma at seul.org arma at seul.org
Tue Jan 31 08:17:02 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	onion.c 
Log Message:
provide a more useful warn message when our onion queue
gets full.


Index: onion.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/onion.c,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -p -d -r1.193 -r1.194
--- onion.c	5 Jan 2006 21:23:03 -0000	1.193
+++ onion.c	31 Jan 2006 08:17:00 -0000	1.194
@@ -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;
   }



More information about the tor-commits mailing list