From 538c3b0c266f6b39cb0c93db10baf8cb5f59c0cc Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 7 Dec 2004 15:31:54 +0000 Subject: [PATCH] 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 --- src/or/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3