summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-07 15:31:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-07 15:31:54 +0000
commit538c3b0c266f6b39cb0c93db10baf8cb5f59c0cc (patch)
treea88c06947a62f3bf18c60687f5dcc055bb01e5b7
parent802d374a99cae37ec33a098e4df79cd9165e624e (diff)
downloadtor-538c3b0c266f6b39cb0c93db10baf8cb5f59c0cc.tar.gz
tor-538c3b0c266f6b39cb0c93db10baf8cb5f59c0cc.zip
avoid a sigpipe from a race: if we get the end right after
the app has hung up on us, we shouldn't hold-open-until-flush. svn:r3109
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 39b6369939..948b030df0 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -739,8 +739,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
/* 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(conn);
+ conn->hold_open_until_flushed = 1;
}
- conn->hold_open_until_flushed = 1;
#endif
return 0;
case RELAY_COMMAND_EXTEND: