Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallDesktop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallDesktop
Commits
35796b8f
Commit
35796b8f
authored
Sep 12, 2021
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Set timeout to 5sec for server websocket connection
parent
8351440e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PlayWall/src/main/java/de/tobias/playpad/server/ServerImpl.java
+3
-2
3 additions, 2 deletions
...ll/src/main/java/de/tobias/playpad/server/ServerImpl.java
with
3 additions
and
2 deletions
PlayWall/src/main/java/de/tobias/playpad/server/ServerImpl.java
+
3
−
2
View file @
35796b8f
...
...
@@ -71,9 +71,9 @@ public class ServerImpl implements Server, ChangeListener<ConnectionState> {
private
static
final
String
PROTOCOL
=
"https"
;
private
static
final
String
WS_PROTOCOL
=
"wss"
;
private
String
host
;
private
final
String
host
;
private
WebSocket
websocket
;
private
ServerSyncListener
syncListener
;
private
final
ServerSyncListener
syncListener
;
ServerImpl
(
String
host
)
{
this
.
host
=
host
;
...
...
@@ -281,6 +281,7 @@ public class ServerImpl implements Server, ChangeListener<ConnectionState> {
public
void
connect
(
String
key
)
{
try
{
WebSocketFactory
webSocketFactory
=
new
WebSocketFactory
();
webSocketFactory
.
setConnectionTimeout
(
5000
);
if
(
PlayPadMain
.
sslContext
!=
null
)
{
webSocketFactory
.
setSSLContext
(
PlayPadMain
.
sslContext
);
}
...
...
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