Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
jarl
tor
Commits
2a5bcb29
Commit
2a5bcb29
authored
20 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Resolve FIXME: Possible solution to note_disconnect problem; needs thought and review.
svn:r2807
parent
5d92fbe3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/connection.c
+11
-1
11 additions, 1 deletion
src/or/connection.c
with
11 additions
and
1 deletion
src/or/connection.c
+
11
−
1
View file @
2a5bcb29
...
...
@@ -202,8 +202,18 @@ void connection_about_to_close_connection(connection_t *conn)
rep_hist_note_connect_failed
(
conn
->
identity_digest
,
time
(
NULL
));
control_event_or_conn_status
(
conn
,
OR_CONN_EVENT_FAILED
);
}
}
else
if
(
0
)
{
// XXX reason == CLOSE_REASON_UNUSED_OR_CONN) {
}
else
if
(
conn
->
hold_open_until_flushed
)
{
/* XXXX009 We used to have an arg that told us whether we closed the
* connection on purpose or not. Can we use hold_open_until_flushed
* instead? We only set it when we are intentionally closing a
* connection. -NM
*
* (Of course, now things we set to close which expire rather than
* flushing still get noted as dead, not disconnected. But this is an
* improvement. -NM
*/
rep_hist_note_disconnect
(
conn
->
identity_digest
,
time
(
NULL
));
control_event_or_conn_status
(
conn
,
OR_CONN_EVENT_CLOSED
);
}
else
if
(
conn
->
identity_digest
)
{
rep_hist_note_connection_died
(
conn
->
identity_digest
,
time
(
NULL
));
control_event_or_conn_status
(
conn
,
OR_CONN_EVENT_CLOSED
);
...
...
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