推送重发次数限制,时间限制修改

back_recharge
lvxinran 2021-01-14 16:01:39 +08:00
parent e0e64e46b3
commit 21faa2b905
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);
}