summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-08 18:53:24 -0700
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:31:13 -0400
commit9f8027abfd70c364edbdddb90faa0adfa5547409 (patch)
tree3be707a60ab2bbee327707bca20938b7f4e2bf02 /src/or/relay.c
parentd830eb366ab037c820b138cfbb8f4bd66986bf42 (diff)
downloadtor-9f8027abfd70c364edbdddb90faa0adfa5547409.tar.gz
tor-9f8027abfd70c364edbdddb90faa0adfa5547409.zip
Make a function to mark a connection and set hold_open_until_flushed.
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 16048fa8c7..f9a44cf16a 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1157,8 +1157,7 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
if (!conn->_base.marked_for_close) {
/* only mark it if not already marked. it's possible to
* get the 'end' right around when the client hangs up on us. */
- connection_mark_for_close(TO_CONN(conn));
- conn->_base.hold_open_until_flushed = 1;
+ connection_mark_and_flush(TO_CONN(conn));
}
return 0;
case RELAY_COMMAND_EXTEND: