diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-03 08:46:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-03 08:46:18 +0000 |
commit | 419a672222aeeb5f021e43ce468686828d784621 (patch) | |
tree | db283437c2194a6d39a35e6e2904adbaf3da33db /src/or/connection_edge.c | |
parent | 6022bfea11bc3f89b9baf787563203b36779361e (diff) | |
download | tor-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.c | 2 |
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 } |