summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index cbd8179527..568de4d6c7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -500,7 +500,10 @@ conn_write_callback(int fd, short events, void *_conn)
edge_conn->end_reason = END_STREAM_REASON_INTERNAL;
conn->edge_has_sent_end = 1;
}
- /* XXX020rc do we need a close-immediate here, so we don't try to flush? */
+ /* XXX020rc do we need a close-immediate here, so we don't try to
+ * flush? -NM
+ * Yes, we do, since it broke in an unexpected way. This should be
+ * safe to do since I don't think this codepath ever gets called. -RD */
connection_mark_for_close(conn);
}
}