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
bd3f8260
Commit
bd3f8260
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Rename some functions to start with a uniform prefix
parent
087ace70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/connection.c
+9
-9
9 additions, 9 deletions
src/or/connection.c
with
9 additions
and
9 deletions
src/or/connection.c
+
9
−
9
View file @
bd3f8260
/* Copyright (c) 2001 Matej Pfajfar.
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2017, The Tor Project, Inc. */
...
...
@@ -138,8 +138,8 @@ static const char *proxy_type_to_string(int proxy_type);
static
int
get_proxy_type
(
void
);
const
tor_addr_t
*
conn_get_outbound_address
(
sa_family_t
family
,
const
or_options_t
*
options
,
unsigned
int
conn_type
);
static
void
blocked_connection_
reenable_
init
(
const
or_options_t
*
options
);
static
void
schedu
le_blocked_connection_
reenab
le
(
void
);
static
void
reenable_
blocked_connection_init
(
const
or_options_t
*
options
);
static
void
reenab
le_blocked_connection_
schedu
le
(
void
);
/** The last addresses that our network interface seemed to have been
* binding to. We use this as one way to detect when our IP changes.
...
...
@@ -3093,7 +3093,7 @@ connection_read_bw_exhausted(connection_t *conn, bool is_global_bw)
(
void
)
is_global_bw
;
conn
->
read_blocked_on_bw
=
1
;
connection_stop_reading
(
conn
);
schedu
le_blocked_connection_
reenab
le
();
reenab
le_blocked_connection_
schedu
le
();
}
/**
...
...
@@ -3108,7 +3108,7 @@ connection_write_bw_exhausted(connection_t *conn, bool is_global_bw)
(
void
)
is_global_bw
;
conn
->
write_blocked_on_bw
=
1
;
connection_stop_reading
(
conn
);
schedu
le_blocked_connection_
reenab
le
();
reenab
le_blocked_connection_
schedu
le
();
}
/** If we have exhausted our global buckets, or the buckets for conn,
...
...
@@ -3191,7 +3191,7 @@ connection_bucket_init(void)
now_ts
);
}
blocked_connection_
reenable_
init
(
options
);
reenable_
blocked_connection_init
(
options
);
}
/** Update the global connection bucket settings to a new value. */
...
...
@@ -3281,7 +3281,7 @@ reenable_blocked_connections_cb(mainloop_event_t *ev, void *arg)
* find themselves blocked on bandwidth.
*/
static
void
blocked_connection_
reenable_
init
(
const
or_options_t
*
options
)
reenable_
blocked_connection_init
(
const
or_options_t
*
options
)
{
if
(
!
reenable_blocked_connections_ev
)
{
reenable_blocked_connections_ev
=
...
...
@@ -3300,12 +3300,12 @@ blocked_connection_reenable_init(const or_options_t *options)
* scheduled.
*/
static
void
schedu
le_blocked_connection_
reenab
le
(
void
)
reenab
le_blocked_connection_
schedu
le
(
void
)
{
if
(
reenable_blocked_connections_is_scheduled
)
return
;
if
(
BUG
(
reenable_blocked_connections_ev
==
NULL
))
{
blocked_connection_
reenable_
init
(
get_options
());
reenable_
blocked_connection_init
(
get_options
());
}
mainloop_event_schedule
(
reenable_blocked_connections_ev
,
&
reenable_blocked_connections_delay
);
...
...
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