Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Jpom
Commits
6b3024ce
Unverified
Commit
6b3024ce
authored
3 years ago
by
bwcx_jzy
Browse files
Options
Download
Email Patches
Plain Diff
fix node update
parent
311265af
master
dev
v2.8.16
v2.8.15
v2.8.14
v2.8.13
v2.8.12
v2.8.11
v2.8.10
v2.8.9
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/server/src/main/java/io/jpom/socket/client/NodeClient.java
+10
-0
...erver/src/main/java/io/jpom/socket/client/NodeClient.java
modules/server/src/main/java/io/jpom/socket/handler/NodeUpdateHandler.java
+1
-2
...c/main/java/io/jpom/socket/handler/NodeUpdateHandler.java
with
11 additions
and
2 deletions
+11
-2
modules/server/src/main/java/io/jpom/socket/client/NodeClient.java
+
10
-
0
View file @
6b3024ce
...
...
@@ -112,6 +112,16 @@ public class NodeClient extends WebSocketClient {
super
.
send
(
text
);
}
@Override
public
void
close
()
{
try
{
super
.
close
();
}
catch
(
Exception
e
)
{
DefaultSystemLog
.
getLog
().
error
(
"关闭异常"
,
e
);
}
}
@Override
public
void
send
(
ByteBuffer
bytes
)
{
super
.
send
(
bytes
);
...
...
This diff is collapsed.
Click to expand it.
modules/server/src/main/java/io/jpom/socket/handler/NodeUpdateHandler.java
+
1
-
2
View file @
6b3024ce
...
...
@@ -111,8 +111,7 @@ public class NodeUpdateHandler extends BaseProxyHandler {
NodeClient
nodeClient
=
clientMap
.
get
(
model
.
getId
());
if
(
nodeClient
!=
null
)
{
//
nodeClient
.
getVersion
();
continue
;
nodeClient
.
close
();
}
Map
<
String
,
Object
>
attributes
=
session
.
getAttributes
();
String
url
=
NodeForward
.
getSocketUrl
(
model
,
NodeUrl
.
NodeUpdate
,
(
UserModel
)
attributes
.
get
(
"userInfo"
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help