Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Wallet
sentinel-android
Commits
98e41cc5
Verified
Commit
98e41cc5
authored
Aug 29, 2020
by
Sarath
⚔
Browse files
Increase timeouts on Okhttp client
parent
64c38046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/src/main/java/com/samourai/sentinel/util/WebUtil.java
app/src/main/java/com/samourai/sentinel/util/WebUtil.java
+3
-2
No files found.
app/src/main/java/com/samourai/sentinel/util/WebUtil.java
View file @
98e41cc5
...
...
@@ -132,9 +132,10 @@ public class WebUtil {
}
OkHttpClient
.
Builder
builder
=
new
OkHttpClient
.
Builder
()
.
connectTimeout
(
90
,
TimeUnit
.
SECONDS
)
.
retryOnConnectionFailure
(
true
)
.
readTimeout
(
90
,
TimeUnit
.
SECONDS
);
.
connectTimeout
(
120
,
TimeUnit
.
SECONDS
)
.
callTimeout
(
120
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
120
,
TimeUnit
.
SECONDS
);
if
(
BuildConfig
.
DEBUG
)
{
builder
.
addInterceptor
(
new
HttpLoggingInterceptor
().
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment