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
12175987
Commit
12175987
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.3.5'
parents
cec58ae5
d598d834
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
changes/bug27750
+6
-0
6 additions, 0 deletions
changes/bug27750
src/core/mainloop/mainloop.c
+6
-11
6 additions, 11 deletions
src/core/mainloop/mainloop.c
with
12 additions
and
11 deletions
changes/bug27750
0 → 100644
+
6
−
0
View file @
12175987
o Minor bugfixes (connection, relay):
- Avoid a wrong BUG() stacktrace in case a closing connection is being held
open because the write side is rate limited but not the read side. Now,
the connection read side is simply shutdown instead of kept open until tor
is able to flush the connection and then fully close it. Fixes bug 27750;
bugfix on 0.3.4.1-alpha.
This diff is collapsed.
Click to expand it.
src/core/mainloop/mainloop.c
+
6
−
11
View file @
12175987
...
...
@@ -1011,23 +1011,18 @@ conn_close_if_marked(int i)
* busy Libevent loops where we keep ending up here and returning
* 0 until we are no longer blocked on bandwidth.
*/
connection_consider_empty_read_buckets
(
conn
);
connection_consider_empty_write_buckets
(
conn
);
/* Make sure that consider_empty_buckets really disabled the
* connection: */
if
(
BUG
(
connection_is_writing
(
conn
)))
{
connection_write_bw_exhausted
(
conn
,
true
);
}
if
(
BUG
(
connection_is_reading
(
conn
)))
{
/* XXXX+ We should make this code unreachable; if a connection is
* marked for close and flushing, there is no point in reading to it
* at all. Further, checking at this point is a bit of a hack: it
* would make much more sense to react in
* connection_handle_read_impl, or to just stop reading in
* mark_and_flush */
connection_read_bw_exhausted
(
conn
,
true
/* kludge. */
);
}
/* The connection is being held due to write rate limit and thus will
* flush its data later. We need to stop reading because this
* connection is about to be closed once flushed. It should not
* process anything more coming in at this stage. */
connection_stop_reading
(
conn
);
}
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