mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 14:23:04 +01:00
specify the control-spec's 'signal' command
svn:r3169
This commit is contained in:
parent
323b3a8dbc
commit
26bce698ad
1 changed files with 19 additions and 2 deletions
|
@ -72,8 +72,9 @@ the message.
|
|||
[The client tried to set a configuration option to an
|
||||
incorrect, ill-formed, or impossible value.]
|
||||
|
||||
0x0006 Unrecognized event code
|
||||
[The client tried to set an event code that we don't recognize.]
|
||||
0x0006 Unrecognized byte code
|
||||
[The client tried to set an byte code in the body that
|
||||
we don't recognize.]
|
||||
|
||||
0x0007 Unauthorized.
|
||||
[The client tried to send a command that requires
|
||||
|
@ -195,6 +196,22 @@ the message.
|
|||
its config options into its torrc. Server returns DONE if successful, or
|
||||
ERROR if it can't write the file or some other error occurs.
|
||||
|
||||
3.10. SIGNAL (Type 0x0009)
|
||||
|
||||
Sent from the client to the server. The body contains one byte that
|
||||
indicates the action the client wishes the server to take.
|
||||
|
||||
0x01 -- Reload: reload config items, refetch directory.
|
||||
0x02 -- Controlled shutdown: if server is an OP, exit immediately.
|
||||
If it's an OR, close listeners and exit after 30 seconds.
|
||||
0x10 -- Dump stats: log information about open connections and
|
||||
circuits.
|
||||
0x12 -- Debug: switch all open logs to loglevel debug.
|
||||
0x15 -- Immediate shutdown: clean up and exit now.
|
||||
|
||||
The server responds with DONE if the signal is recognized (or simply
|
||||
closes the socket if it was asked to close immediately), else ERROR.
|
||||
|
||||
4. Implementation notes
|
||||
|
||||
4.1. There are four ways we could authenticate, for now:
|
||||
|
|
Loading…
Add table
Reference in a new issue