Parcourir la source

Stop answering "end" with "end"

svn:r1150
Nick Mathewson il y a 21 ans
Parent
commit
ee68371f41
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/or/connection_edge.c

+ 3 - 1
src/or/connection_edge.c

@@ -308,7 +308,9 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection
         connection_mark_for_close(conn, END_STREAM_REASON_DONE);
       }
 #else
-      connection_mark_for_close(conn, END_STREAM_REASON_DONE);
+      /* We just *got* an end; no reason to send one. */
+      conn->has_sent_end = 1;
+      connection_mark_for_close(conn, 0);
 #endif
       return 0;
     case RELAY_COMMAND_EXTEND: