summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-21 05:42:12 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-21 05:42:12 +0000
commit888922940742576f7fcdec45dbc00dd054b8a114 (patch)
treec2d91ddbfd5b252be2ad4087f7b0d0c56589274f
parent0ddc9d5707d004e10d53d69092dc00f300e1ea18 (diff)
downloadtor-888922940742576f7fcdec45dbc00dd054b8a114.tar.gz
tor-888922940742576f7fcdec45dbc00dd054b8a114.zip
and another useful answer
svn:r13642
-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);
}
}