|
@@ -587,12 +587,12 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn)
|
|
|
(void)tls;
|
|
|
|
|
|
if (connection_tls_finish_handshake(conn) < 0) {
|
|
|
-
|
|
|
+
|
|
|
connection_mark_for_close(TO_CONN(conn));
|
|
|
}
|
|
|
|
|
|
#if 0
|
|
|
-
|
|
|
+
|
|
|
connection_or_init_conn_from_address(conn, conn->_base.addr,
|
|
|
conn->_base.port, id_digest, 0);
|
|
|
#endif
|
|
@@ -1010,14 +1010,9 @@ connection_or_send_destroy(uint16_t circ_id, or_connection_t *conn, int reason)
|
|
|
cell.payload[0] = (uint8_t) reason;
|
|
|
log_debug(LD_OR,"Sending destroy (circID %d).", circ_id);
|
|
|
|
|
|
-#if 0
|
|
|
-
|
|
|
- * waiting to flush. We need to do something more sensible here. */
|
|
|
-
|
|
|
- * be the very next thing written.*/
|
|
|
- circ = circuit_get_by_circid_orconn(circ_id, conn);
|
|
|
- circuit_clear_cell_queue(circ, conn);
|
|
|
-#endif
|
|
|
+
|
|
|
+ * to take precedence over other data waiting on the circuit's cell queue.
|
|
|
+ */
|
|
|
|
|
|
connection_or_write_cell_to_buf(&cell, conn);
|
|
|
return 0;
|