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
This commit is contained in:
Roger Dingledine 2004-12-07 15:31:54 +00:00
parent 802d374a99
commit 538c3b0c26

View File

@ -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: