diff options
Diffstat (limited to 'src/or/reasons.c')
-rw-r--r-- | src/or/reasons.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/reasons.c b/src/or/reasons.c index 8bce3625d..db0f2e934 100644 --- a/src/or/reasons.c +++ b/src/or/reasons.c @@ -169,7 +169,13 @@ errno_to_stream_end_reason(int e) S_CASE(ENETUNREACH): return END_STREAM_REASON_INTERNAL; E_CASE(EHOSTUNREACH): - return END_STREAM_REASON_NOROUTE; + /* XXXX022 + * 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; S_CASE(ECONNREFUSED): return END_STREAM_REASON_CONNECTREFUSED; S_CASE(ECONNRESET): |