Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Julian Dehm
briar
Commits
e458853f
Unverified
Commit
e458853f
authored
9 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Extra logging to track down Tor connection problems.
parent
c615dd1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
briar-android/src/org/briarproject/plugins/tor/TorPlugin.java
+3
-2
3 additions, 2 deletions
...r-android/src/org/briarproject/plugins/tor/TorPlugin.java
with
3 additions
and
2 deletions
briar-android/src/org/briarproject/plugins/tor/TorPlugin.java
+
3
−
2
View file @
e458853f
...
...
@@ -40,6 +40,7 @@ import java.net.ServerSocket;
import
java.net.Socket
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Scanner
;
import
java.util.concurrent.CountDownLatch
;
...
...
@@ -212,7 +213,7 @@ class TorPlugin implements DuplexPlugin, EventHandler,
controlConnection
.
authenticate
(
read
(
cookieFile
));
// Tell Tor to exit when the control connection is closed
controlConnection
.
takeOwnership
();
controlConnection
.
resetConf
(
Arrays
.
as
List
(
OWNER
));
controlConnection
.
resetConf
(
Collections
.
singleton
List
(
OWNER
));
// Register to receive events from the Tor process
controlConnection
.
setEventHandler
(
this
);
controlConnection
.
setEvents
(
Arrays
.
asList
(
EVENTS
));
...
...
@@ -555,7 +556,7 @@ class TorPlugin implements DuplexPlugin, EventHandler,
return
new
TorTransportConnection
(
this
,
s
);
}
catch
(
IOException
e
)
{
if
(
LOG
.
isLoggable
(
INFO
))
LOG
.
info
(
"Could not connect to "
+
onion
+
": "
+
e
);
LOG
.
log
(
INFO
,
"Could not connect to "
+
onion
+
": "
,
e
);
return
null
;
}
}
...
...
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