assert_circuit_ok(circ);
connection_exit_connect(n_stream);
+
+ /* For path bias: This circuit was used successfully */
+ origin_circ->any_streams_succeeded = 1;
+
tor_free(address);
return 0;
}
unsigned int isolation_any_streams_attached : 1;
/**
- * Did any SOCKS streams actually succeed on this circuit?
- *
- * XXX: We probably also need to set this for intro other hidserv circs..
+ * Did any SOCKS streams or hidserv introductions actually succeed on
+ * this circuit?
*/
unsigned int any_streams_succeeded : 1;
* it to specify when a circuit entered the
* _C_REND_READY_INTRO_ACKED state. */
rendcirc->base_.timestamp_dirty = time(NULL);
+
+ /* For path bias: This circuit was used successfully */
+ circ->any_streams_succeeded = 1;
} else {
log_info(LD_REND,"...Found no rend circ. Dropping on the floor.");
}
if (circuit_init_cpath_crypto(cpath,keys+DIGEST_LEN,1)<0)
goto err;
memcpy(cpath->handshake_digest, keys, DIGEST_LEN);
+
+ /* For path bias: This circuit was used successfully */
+ circuit->any_streams_succeeded = 1;
goto done;