Merge branch 'master_online_hw' into master_test_hw

back_recharge
duhui 2021-01-18 17:59:37 +08:00
commit 65e781d66c
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ public class RetrySendIndicationThread extends Thread{
for(ISession.IndicationMsg indicationMsg : indexToIndication.values()){
long create = indicationMsg.getCreate();
int retryTimes = indicationMsg.getRetryTimes()+1;
if(now-create>retryTimes*300){
if(retryTimes>3){
// LOGGER.info("uid=>{}重试Indication3次以上未收到不再发送",session.getUid());
continue;
}
if(now-create>retryTimes*3000){
MessageUtil.retrySendIndication(session,indicationMsg.getMsg());
indicationMsg.setRetryTimes(retryTimes);
}