Rate-limit unsafe socks warning
commitda3a6e724fc9b1aa780d1f0c13787f365d370bbe
authorSebastian Hahn <sebastian@torproject.org>
Mon, 4 Oct 2010 11:31:58 +0000 (4 13:31 +0200)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Nov 2010 18:57:37 +0000 (15 13:57 -0500)
tree5af6b662342bf4a2299963ce3a25d06ce3f1fcb7
parentdbba84c917279c8c58b1bfdac37fbcdfd84b7bb7
Rate-limit unsafe socks warning

Pick 5 seconds as the limit. 5 seconds is a compromise here between
making sure the user notices that the bad behaviour is (still) happening
and not spamming their log too much needlessly (the log message is
pretty long). We also keep warning every time if safesocks is
specified, because then the user presumably wants to hear about every
blocked instance.

(This is based on the original patch by Sebastian, then backported to
0.2.2 and with warnings split into their own function.)
changes/bug2000 [new file with mode: 0644]
src/or/buffers.c