Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengtianlai3
ioc_sixiang_license
Commits
200b89e1
Commit
200b89e1
authored
Jun 07, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
788836b5
Pipeline
#285
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ForwardClientHandler.java
...ava/iot/sixiang/license/forward/ForwardClientHandler.java
+2
-2
ForwardConnectionListener.java
...ot/sixiang/license/forward/ForwardConnectionListener.java
+2
-1
No files found.
license/src/main/java/iot/sixiang/license/forward/ForwardClientHandler.java
View file @
200b89e1
...
...
@@ -98,8 +98,8 @@ public class ForwardClientHandler extends SimpleChannelInboundHandler<Object> {
int
port
=
socketAddr
.
getPort
();
log
.
debug
(
"client disconnected--->,ip:"
+
clientIp
+
",port:"
+
port
);
ctx
.
close
();
ForwardManager
forwardManager
=
SpringUtil
.
getBean
(
ForwardManager
.
class
);
forwardManager
.
startTcpClient
();
//
ForwardManager forwardManager = SpringUtil.getBean(ForwardManager.class);
//
forwardManager.startTcpClient();
}
@Override
...
...
license/src/main/java/iot/sixiang/license/forward/ForwardConnectionListener.java
View file @
200b89e1
...
...
@@ -15,6 +15,7 @@ public class ForwardConnectionListener extends BaseConnectionListener {
@Override
public
void
operationComplete
(
ChannelFuture
channelFuture
)
throws
Exception
{
log
.
debug
(
"listen ..."
+
appId
);
if
(!
channelFuture
.
isSuccess
())
{
final
EventLoop
loop
=
channelFuture
.
channel
().
eventLoop
();
loop
.
schedule
(
new
Runnable
()
{
...
...
@@ -25,7 +26,7 @@ public class ForwardConnectionListener extends BaseConnectionListener {
log
.
debug
(
"channelActive.forwardManager:"
+
forwardManager
);
log
.
warn
(
"The client is not connected and starts to reconnect..."
+
forwardManager
);
forwardManager
.
startTcpClient
();
forwardManager
.
startTcpClient
(
appId
);
}
},
10L
,
TimeUnit
.
SECONDS
);
}
else
{
...
...
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