aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-03 08:46:18 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-03 08:46:18 +0000
commit419a672222aeeb5f021e43ce468686828d784621 (patch)
treedb283437c2194a6d39a35e6e2904adbaf3da33db /src/or/connection_edge.c
parent6022bfea11bc3f89b9baf787563203b36779361e (diff)
downloadtor-419a672222aeeb5f021e43ce468686828d784621.tar
tor-419a672222aeeb5f021e43ce468686828d784621.tar.gz
holding until flush was borked
we were never writing anything when hold_open_until_flushed was set, since conn_write returns early if marked_for_conn is set. seems a bit better now. svn:r1214
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 38aedb385..848003012 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -58,6 +58,8 @@ int connection_edge_process_inbuf(connection_t *conn) {
/* eof reached, kill it. */
log_fn(LOG_INFO,"conn (fd %d) reached eof. Closing.", conn->s);
connection_mark_for_close(conn, END_STREAM_REASON_DONE);
+ conn->hold_open_until_flushed = 1; /* just because we shouldn't read
+ doesn't mean we shouldn't write */
return 0;
#endif
}