Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
3d587fe7
Commit
3d587fe7
authored
May 24, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPC调用失败后,尝试本地发送
parent
b1c42e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
core/src/main/java/com/wecloud/im/ws/sender/ChannelSender.java
+15
-0
No files found.
core/src/main/java/com/wecloud/im/ws/sender/ChannelSender.java
View file @
3d587fe7
...
@@ -168,6 +168,7 @@ public class ChannelSender {
...
@@ -168,6 +168,7 @@ public class ChannelSender {
routerSendService
.
sendMsgRemote
(
toClientId
,
clientChannelInfo
.
getPlatform
(),
msgJson
);
routerSendService
.
sendMsgRemote
(
toClientId
,
clientChannelInfo
.
getPlatform
(),
msgJson
);
}
catch
(
RpcException
exception
)
{
}
catch
(
RpcException
exception
)
{
// do nothing is ok
// do nothing is ok
tryFindAndSendAndRefresh
(
toClientId
,
clientChannelInfo
.
getPlatform
(),
msgJson
);
log
.
info
(
"rpc 调用异常 {} "
,
JSON
.
toJSONString
(
clientChannelInfo
));
log
.
info
(
"rpc 调用异常 {} "
,
JSON
.
toJSONString
(
clientChannelInfo
));
}
}
}
}
...
@@ -176,6 +177,20 @@ public class ChannelSender {
...
@@ -176,6 +177,20 @@ public class ChannelSender {
}
}
/**
/**
*
* @Author luozh
* @Date 2022年05月24日 05:30:50
* @param toClientId
* @param platform
* @param msg
* @Return
*/
public
void
tryFindAndSendAndRefresh
(
Long
toClientId
,
Integer
platform
,
String
msg
)
{
log
.
info
(
"触发tryFindAndSendAndRefresh {} {}"
,
toClientId
,
platform
);
this
.
sendMsgLocal
(
toClientId
,
platform
,
msg
);
}
/**
* 本地直接下发,限定本机有的channel
* 本地直接下发,限定本机有的channel
*
*
* @param nioSocketChannel
* @param nioSocketChannel
...
...
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