r9389@Kushana: nickm | 2006-10-25 17:46:16 -0400

Add a CLEARDNSCACHE signal to clear the client-side DNS cache.


svn:r8829
This commit is contained in:
Nick Mathewson
2006-10-25 21:46:21 +00:00
parent 5c670a186c
commit 3fbb292bff
5 changed files with 16 additions and 2 deletions
+5 -2
View File
@@ -242,7 +242,8 @@ $Id$
"SIGNAL" SP Signal CRLF
Signal = "RELOAD" / "SHUTDOWN" / "DUMP" / "DEBUG" / "HALT" /
"HUP" / "INT" / "USR1" / "USR2" / "TERM" / "NEWNYM"
"HUP" / "INT" / "USR1" / "USR2" / "TERM" / "NEWNYM" /
"CLEARDNSCACHE"
The meaning of the signals are:
@@ -254,8 +255,10 @@ $Id$
circuits. (like USR1)
DEBUG -- Debug: switch all open logs to loglevel debug. (like USR2)
HALT -- Immediate shutdown: clean up and exit now. (like TERM)
CLEARDNSCACHE -- Forget the client-side cached IPs for all hostnames.
NEWNYM -- Switch to clean circuits, so new application requests
don't share any circuits with old ones.
don't share any circuits with old ones. Also clears
the client-side DNS cache.
The server responds with "250 OK" if the signal is recognized (or simply
closes the socket if it was asked to close immediately), or "552