Browse Source

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

Roger Dingledine 21 years ago
parent
commit
538c3b0c26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/relay.c

+ 1 - 1
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: