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
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
sergi
Tor
Commits
2cb82c33
Commit
2cb82c33
authored
12 years ago
by
Andrea Shepard
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug7267' of
ssh://git-rw.torproject.org/user/andrea/tor
parents
02a43e5e
3db3daa6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug7267
+4
-0
4 additions, 0 deletions
changes/bug7267
src/or/channel.c
+13
-0
13 additions, 0 deletions
src/or/channel.c
src/or/hibernate.c
+9
-1
9 additions, 1 deletion
src/or/hibernate.c
with
26 additions
and
1 deletion
changes/bug7267
0 → 100644
+
4
−
0
View file @
2cb82c33
- Major bugfixes
o Call channel_mark_for_close() rather than connection_mark_for_close()
in hibernate_go_dormant() when closing an or_connection_t. Fixes bug
7267.
This diff is collapsed.
Click to expand it.
src/or/channel.c
+
13
−
0
View file @
2cb82c33
...
...
@@ -1057,6 +1057,19 @@ channel_set_cell_handlers(channel_t *chan,
chan
->
var_cell_handler
))
channel_process_cells
(
chan
);
}
/*
* On closing channels
*
* There are three functions that close channels, for use in
* different circumstances:
*
* - Use channel_mark_for_close() for most cases
* - Use channel_close_from_lower_layer() if you are connection_or.c
* and the other end closes the underlying connection.
* - Use channel_close_for_error() if you are connection_or.c and
* some sort of error has occurred.
*/
/**
* Mark a channel for closure
*
...
...
This diff is collapsed.
Click to expand it.
src/or/hibernate.c
+
9
−
1
View file @
2cb82c33
...
...
@@ -23,6 +23,8 @@ hibernating, phase 2:
#define HIBERNATE_PRIVATE
#include
"or.h"
#include
"channel.h"
#include
"channeltls.h"
#include
"config.h"
#include
"connection.h"
#include
"connection_edge.h"
...
...
@@ -846,7 +848,13 @@ hibernate_go_dormant(time_t now)
if
(
conn
->
type
==
CONN_TYPE_AP
)
/* send socks failure if needed */
connection_mark_unattached_ap
(
TO_ENTRY_CONN
(
conn
),
END_STREAM_REASON_HIBERNATING
);
else
else
if
(
conn
->
type
==
CONN_TYPE_OR
)
{
if
(
TO_OR_CONN
(
conn
)
->
chan
)
{
channel_mark_for_close
(
TLS_CHAN_TO_BASE
(
TO_OR_CONN
(
conn
)
->
chan
));
}
else
{
connection_mark_for_close
(
conn
);
}
}
else
connection_mark_for_close
(
conn
);
}
...
...
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