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
f18ee7fc
Commit
f18ee7fc
authored
9 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'dgoulet/bug16381_026_01-revert' into maint-0.2.6
parents
c8cb5565
8acf5255
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/bug16381
+13
-0
13 additions, 0 deletions
changes/bug16381
src/or/rendcommon.c
+8
-2
8 additions, 2 deletions
src/or/rendcommon.c
with
21 additions
and
2 deletions
changes/bug16381
0 → 100644
+
13
−
0
View file @
f18ee7fc
o Major bugfix (Hidden service client)
- Revert commit 9407040c592184e05e45a3c1a00739c2dd302288 of bug #14219
that indeed fixed an issue but introduced a major hidden service
reachability regression detailed in bug #16381. This is a temporary
fix since we can live with the minor issue in #14219 but the
regression introduced is too much of a set back.
To be clear, #14219 bug just results in some load on the network, and
some delay for the client when visiting a hidden service that will
ultimately fail.
This is only a bandaid for #16381 thus it does _not_ fixes it. bugfix
on tor-0.2.6.3-alpha~138.
This diff is collapsed.
Click to expand it.
src/or/rendcommon.c
+
8
−
2
View file @
f18ee7fc
...
...
@@ -1249,12 +1249,18 @@ rend_cache_store_v2_desc_as_client(const char *desc,
/* Do we already have a newer descriptor? */
tor_snprintf
(
key
,
sizeof
(
key
),
"2%s"
,
service_id
);
e
=
(
rend_cache_entry_t
*
)
strmap_get_lc
(
rend_cache
,
key
);
if
(
e
&&
e
->
parsed
->
timestamp
>
=
parsed
->
timestamp
)
{
log_info
(
LD_REND
,
"We already have a new
enough
service descriptor for "
if
(
e
&&
e
->
parsed
->
timestamp
>
parsed
->
timestamp
)
{
log_info
(
LD_REND
,
"We already have a new
er
service descriptor for "
"service ID %s with the same desc ID and version."
,
safe_str_client
(
service_id
));
goto
okay
;
}
/* Do we already have this descriptor? */
if
(
e
&&
!
strcmp
(
desc
,
e
->
desc
))
{
log_info
(
LD_REND
,
"We already have this service descriptor %s."
,
safe_str_client
(
service_id
));
goto
okay
;
}
if
(
!
e
)
{
e
=
tor_malloc_zero
(
sizeof
(
rend_cache_entry_t
));
strmap_set_lc
(
rend_cache
,
key
,
e
);
...
...
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