Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
19299669
Commit
19299669
authored
12 years ago
by
Mike Perry
Browse files
Options
Downloads
Patches
Plain Diff
Fix spaces.
parent
a5487364
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/or/circuitbuild.c
+2
-4
2 additions, 4 deletions
src/or/circuitbuild.c
src/or/entrynodes.h
+3
-4
3 additions, 4 deletions
src/or/entrynodes.h
with
5 additions
and
8 deletions
src/or/circuitbuild.c
+
2
−
4
View file @
19299669
...
...
@@ -1137,7 +1137,6 @@ pathbias_should_count(origin_circuit_t *circ)
return
1
;
}
/**
* Check our circuit state to see if this is a successful first hop.
* If so, record it in the current guard's path bias first_hop count.
...
...
@@ -1326,7 +1325,7 @@ pathbias_count_success(origin_circuit_t *circ)
void
pathbias_count_timeout
(
origin_circuit_t
*
circ
)
{
if
(
!
pathbias_should_count
(
circ
))
{
if
(
!
pathbias_should_count
(
circ
))
{
return
;
}
entry_guard_t
*
guard
=
...
...
@@ -1357,7 +1356,7 @@ entry_guard_inc_first_hop_count(entry_guard_t *guard)
<
pathbias_get_crit_rate
(
options
)
&&
!
guard
->
path_bias_crited
)
{
guard
->
path_bias_crited
=
1
;
if
(
pathbias_get_dropguards
(
options
))
{
/* This message is currently disabled by default. */
log_warn
(
LD_PROTOCOL
,
...
...
@@ -1407,7 +1406,6 @@ entry_guard_inc_first_hop_count(entry_guard_t *guard)
guard
->
circuit_successes
,
guard
->
first_hops
,
guard
->
timeouts
,
(
long
)
circ_times
.
close_ms
/
1000
);
}
}
/* If we get a ton of circuits, just scale everything down */
...
...
This diff is collapsed.
Click to expand it.
src/or/entrynodes.h
+
3
−
4
View file @
19299669
...
...
@@ -31,8 +31,8 @@ typedef struct entry_guard_t {
* router, 1 if we have. */
unsigned
int
can_retry
:
1
;
/**< Should we retry connecting to this entry,
* in spite of having it marked as unreachable?*/
unsigned
int
path_bias_noticed
:
1
;
/**< Did we alert the user about path
bias
*
for this node already? */
unsigned
int
path_bias_noticed
:
1
;
/**< Did we alert the user about path
* bias
for this node already? */
unsigned
int
path_bias_warned
:
1
;
/**< Did we alert the user about path bias
* for this node already? */
unsigned
int
path_bias_crited
:
1
;
/**< Did we alert the user about path bias
...
...
@@ -51,8 +51,7 @@ typedef struct entry_guard_t {
unsigned
first_hops
;
/**< Number of first hops this guard has completed */
unsigned
circuit_successes
;
/**< Number of successfully built circuits using
* this guard as first hop. */
unsigned
timeouts
;
/**< Number of 'right-censored' timeouts
for this guard. */
unsigned
timeouts
;
/**< Number of 'right-censored' timeouts for this guard.*/
}
entry_guard_t
;
entry_guard_t
*
entry_guard_get_by_id_digest
(
const
char
*
digest
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment