Add error reason to spec: TORPROTOCOL reason means "you are not speaking a version of Tor I understand; say bye-bye to your stream."

svn:r3721
This commit is contained in:
Nick Mathewson 2005-03-01 22:43:24 +00:00
parent afe414f070
commit b0b396a7ce

View File

@ -470,6 +470,8 @@ TODO: (very soon)
10 -- REASON_INTERNAL (Internal error at the OR) 10 -- REASON_INTERNAL (Internal error at the OR)
11 -- REASON_RESOURCELIMIT (OR has no resources to fulfill request) 11 -- REASON_RESOURCELIMIT (OR has no resources to fulfill request)
12 -- REASON_CONNRESET (Connection was unexpectedly reset) 12 -- REASON_CONNRESET (Connection was unexpectedly reset)
13 -- REASON_TORPROTOCOL (Sent when closing connection because of
Tor protocol violations.)
(With REASON_EXITPOLICY, the 4-byte IPv4 address or 16-byte IPv6 address (With REASON_EXITPOLICY, the 4-byte IPv4 address or 16-byte IPv6 address
forms the optional data; no other reason currently has extra data.) forms the optional data; no other reason currently has extra data.)