mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Space fixes.
This commit is contained in:
parent
b75880d7b3
commit
4590993ff3
@ -1462,8 +1462,8 @@ pathbias_check_close(origin_circuit_t *ocirc, int reason)
|
||||
/* FIXME: Only count bias if the network is live?
|
||||
* What about clock jumps/suspends? */
|
||||
log_info(LD_CIRC,
|
||||
"Circuit %d's channel closed without successful use for reason %d, "
|
||||
"channel reason %d. Circuit purpose %d currently %s.",
|
||||
"Circuit %d's channel closed without successful use for reason "
|
||||
"%d, channel reason %d. Circuit purpose %d currently %s.",
|
||||
ocirc->global_identifier,
|
||||
reason, circ->n_chan->reason_for_closing,
|
||||
circ->purpose, circuit_state_to_string(circ->state));
|
||||
@ -1622,7 +1622,7 @@ pathbias_get_closed_count(entry_guard_t *guard)
|
||||
|
||||
ocirc = TO_ORIGIN_CIRCUIT(circ);
|
||||
|
||||
if(!ocirc->cpath || !ocirc->cpath->extend_info)
|
||||
if (!ocirc->cpath || !ocirc->cpath->extend_info)
|
||||
continue;
|
||||
|
||||
if (ocirc->path_state >= PATH_STATE_BUILD_SUCCEEDED &&
|
||||
@ -1680,8 +1680,9 @@ entry_guard_inc_circ_attempt_count(entry_guard_t *guard)
|
||||
"were unusable, %d collapsed, and %d timed out. For "
|
||||
"reference, your timeout cutoff is %ld seconds.",
|
||||
guard->nickname, hex_str(guard->identity, DIGEST_LEN),
|
||||
(int)pathbias_get_closed_count(guard), (int)guard->circ_attempts,
|
||||
(int)guard->circ_successes, (int)guard->unusable_circuits,
|
||||
(int)pathbias_get_closed_count(guard),
|
||||
(int)guard->circ_attempts, (int)guard->circ_successes,
|
||||
(int)guard->unusable_circuits,
|
||||
(int)guard->collapsed_circuits, (int)guard->timeouts,
|
||||
(long)circ_times.close_ms/1000);
|
||||
guard->path_bias_disabled = 1;
|
||||
@ -1698,8 +1699,9 @@ entry_guard_inc_circ_attempt_count(entry_guard_t *guard)
|
||||
"were unusable, %d collapsed, and %d timed out. For "
|
||||
"reference, your timeout cutoff is %ld seconds.",
|
||||
guard->nickname, hex_str(guard->identity, DIGEST_LEN),
|
||||
(int)pathbias_get_closed_count(guard), (int)guard->circ_attempts,
|
||||
(int)guard->circ_successes, (int)guard->unusable_circuits,
|
||||
(int)pathbias_get_closed_count(guard),
|
||||
(int)guard->circ_attempts, (int)guard->circ_successes,
|
||||
(int)guard->unusable_circuits,
|
||||
(int)guard->collapsed_circuits, (int)guard->timeouts,
|
||||
(long)circ_times.close_ms/1000);
|
||||
}
|
||||
@ -1716,8 +1718,9 @@ entry_guard_inc_circ_attempt_count(entry_guard_t *guard)
|
||||
"were unusable, %d collapsed, and %d timed out. For "
|
||||
"reference, your timeout cutoff is %ld seconds.",
|
||||
guard->nickname, hex_str(guard->identity, DIGEST_LEN),
|
||||
(int)pathbias_get_closed_count(guard), (int)guard->circ_attempts,
|
||||
(int)guard->circ_successes, (int)guard->unusable_circuits,
|
||||
(int)pathbias_get_closed_count(guard),
|
||||
(int)guard->circ_attempts, (int)guard->circ_successes,
|
||||
(int)guard->unusable_circuits,
|
||||
(int)guard->collapsed_circuits, (int)guard->timeouts,
|
||||
(long)circ_times.close_ms/1000);
|
||||
}
|
||||
@ -1732,8 +1735,9 @@ entry_guard_inc_circ_attempt_count(entry_guard_t *guard)
|
||||
"were unusable, %d collapsed, and %d timed out. For "
|
||||
"reference, your timeout cutoff is %ld seconds.",
|
||||
guard->nickname, hex_str(guard->identity, DIGEST_LEN),
|
||||
(int)pathbias_get_closed_count(guard), (int)guard->circ_attempts,
|
||||
(int)guard->circ_successes, (int)guard->unusable_circuits,
|
||||
(int)pathbias_get_closed_count(guard),
|
||||
(int)guard->circ_attempts, (int)guard->circ_successes,
|
||||
(int)guard->unusable_circuits,
|
||||
(int)guard->collapsed_circuits, (int)guard->timeouts,
|
||||
(long)circ_times.close_ms/1000);
|
||||
}
|
||||
|
@ -59,3 +59,4 @@ void pathbias_count_timeout(origin_circuit_t *circ);
|
||||
void pathbias_check_close(origin_circuit_t *circ, int reason);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -2184,13 +2184,13 @@ connection_ap_handshake_socks_reply(entry_connection_t *conn, char *reply,
|
||||
endreason == END_STREAM_REASON_CONNRESET ||
|
||||
endreason == END_STREAM_REASON_NOROUTE ||
|
||||
endreason == END_STREAM_REASON_RESOURCELIMIT) {
|
||||
if(!conn->edge_.on_circuit ||
|
||||
if (!conn->edge_.on_circuit ||
|
||||
!CIRCUIT_IS_ORIGIN(conn->edge_.on_circuit)) {
|
||||
// DNS remaps can trigger this. So can failed hidden service
|
||||
// lookups.
|
||||
log_info(LD_BUG,
|
||||
"(Harmless.) No origin circuit for successful SOCKS stream %ld. "
|
||||
"Reason: %d", ENTRY_TO_CONN(conn)->global_identifier, endreason);
|
||||
"No origin circuit for successful SOCKS stream %ld. Reason: "
|
||||
"%d", ENTRY_TO_CONN(conn)->global_identifier, endreason);
|
||||
} else {
|
||||
TO_ORIGIN_CIRCUIT(conn->edge_.on_circuit)->path_state
|
||||
= PATH_STATE_USE_SUCCEEDED;
|
||||
|
@ -2586,7 +2586,7 @@ rend_service_rendezvous_has_opened(origin_circuit_t *circuit)
|
||||
tor_assert(circuit->rend_data);
|
||||
|
||||
/* Declare the circuit dirty to avoid reuse, and for path-bias */
|
||||
if(!circuit->base_.timestamp_dirty)
|
||||
if (!circuit->base_.timestamp_dirty)
|
||||
circuit->base_.timestamp_dirty = time(NULL);
|
||||
|
||||
hop = circuit->build_state->service_pending_final_cpath_ref->cpath;
|
||||
|
Loading…
Reference in New Issue
Block a user