]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsolete
authorNick Mathewson <nickm@torproject.org>
Mon, 28 Mar 2011 17:42:59 +0000 (13:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 28 Mar 2011 17:42:59 +0000 (13:42 -0400)
changes/noroute [new file with mode: 0644]
src/or/reasons.c

diff --git a/changes/noroute b/changes/noroute
new file mode 100644 (file)
index 0000000..644deec
--- /dev/null
@@ -0,0 +1,5 @@
+  - Minor features
+    - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
+      Clients before 0.2.1.27 didn't handle NOROUTE correctly, but
+      such clients are already deprecated because of security bugs.
+
index 27c947edff78adb308517fb8ea2a9ad5e1ed6b73..319e6c055ab608338d10f9280b886214ae115599 100644 (file)
@@ -174,13 +174,7 @@ errno_to_stream_end_reason(int e)
     S_CASE(ENETUNREACH):
       return END_STREAM_REASON_INTERNAL;
     S_CASE(EHOSTUNREACH):
-      /* XXXX023
-       * The correct behavior is END_STREAM_REASON_NOROUTE, but older
-       * clients don't recognize it.  So we're going to continue sending
-       * "MISC" until 0.2.1.27 or later is "well established".
-       */
-      /* return END_STREAM_REASON_NOROUTE; */
-      return END_STREAM_REASON_MISC;
+      return END_STREAM_REASON_NOROUTE;
     S_CASE(ECONNREFUSED):
       return END_STREAM_REASON_CONNECTREFUSED;
     S_CASE(ECONNRESET):