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
1e4e0244
Commit
1e4e0244
authored
22 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
minor race condition
(it seemed to work anyway, but...) svn:r100
parent
f9f3e2f1
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/connection.c
+3
-2
3 additions, 2 deletions
src/or/connection.c
src/or/connection_ap.c
+1
-2
1 addition, 2 deletions
src/or/connection_ap.c
with
4 additions
and
4 deletions
src/or/connection.c
+
3
−
2
View file @
1e4e0244
...
...
@@ -635,8 +635,9 @@ int connection_consider_sending_sendme(connection_t *conn) {
circ
=
circuit_get_by_conn
(
conn
);
if
(
!
circ
)
{
log
(
LOG_DEBUG
,
"connection_consider_sending_sendme(): Bug: no circuit associated with conn. Closing."
);
return
-
1
;
/* this can legitimately happen if the destroy has already arrived and torn down the circuit */
log
(
LOG_DEBUG
,
"connection_consider_sending_sendme(): No circuit associated with conn. Skipping."
);
return
0
;
}
sendme
.
command
=
CELL_SENDME
;
sendme
.
length
=
RECEIVE_WINDOW_INCREMENT
;
...
...
This diff is collapsed.
Click to expand it.
src/or/connection_ap.c
+
1
−
2
View file @
1e4e0244
...
...
@@ -365,8 +365,7 @@ int connection_ap_finished_flushing(connection_t *conn) {
case
AP_CONN_STATE_OPEN
:
/* FIXME down the road, we'll clear out circuits that are pending to close */
connection_stop_writing
(
conn
);
connection_consider_sending_sendme
(
conn
);
return
0
;
return
connection_consider_sending_sendme
(
conn
);
default:
log
(
LOG_DEBUG
,
"Bug: connection_ap_finished_flushing() called in unexpected state."
);
return
0
;
...
...
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