Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
2c27cfc3
Commit
2c27cfc3
authored
Aug 14, 2006
by
Roger Dingledine
Browse files
save 3-7 bytes per edge connection
svn:r7044
parent
2dc9066f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/connection_edge.c
View file @
2c27cfc3
...
...
@@ -417,7 +417,8 @@ connection_ap_expire_beginning(void)
circ
->
timestamp_dirty
-=
options
->
MaxCircuitDirtiness
;
/* give our stream another 'cutoff' seconds to try */
conn
->
_base
.
timestamp_lastread
+=
cutoff
;
conn
->
num_socks_retries
++
;
if
(
conn
->
num_socks_retries
<
250
)
/* avoid overflow */
conn
->
num_socks_retries
++
;
/* move it back into 'pending' state, and try to attach. */
if
(
connection_ap_detach_retriable
(
conn
,
TO_ORIGIN_CIRCUIT
(
circ
))
<
0
)
{
connection_mark_unattached_ap
(
conn
,
END_STREAM_REASON_CANT_ATTACH
);
...
...
src/or/or.h
View file @
2c27cfc3
...
...
@@ -713,7 +713,7 @@ typedef struct edge_connection_t {
/** Number of times we've reassigned this application connection to
* a new circuit. We keep track because the timeout is longer if we've
* already retried several times. */
int
num_socks_retries
;
u
int
8_t
num_socks_retries
;
/** Nickname of planned exit node -- used with .exit support. */
char
*
chosen_exit_name
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment