[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.2.2] Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsolete
commit fc647832783cab352bebba63fe0210d7be395058
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Mar 28 13:42:59 2011 -0400
Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsolete
---
changes/noroute | 5 +++++
src/or/reasons.c | 8 +-------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/changes/noroute b/changes/noroute
new file mode 100644
index 0000000..644deec
--- /dev/null
+++ b/changes/noroute
@@ -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.
+
diff --git a/src/or/reasons.c b/src/or/reasons.c
index 27c947e..319e6c0 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -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):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits