Commit e5bada30 authored by 潘栩锋's avatar 潘栩锋 🚴

修改 3秒收不到timegrid会重连,修改为60秒。 添加log.Error

parent 4ab6da71
...@@ -71,9 +71,9 @@ namespace FlyADBase ...@@ -71,9 +71,9 @@ namespace FlyADBase
/// </summary> /// </summary>
int noTGridCnt = 0; int noTGridCnt = 0;
/// <summary> /// <summary>
/// 3次收不到timegrid, 重连 /// 60秒收不到timegrid, 重连
/// </summary> /// </summary>
const int ReConnectTGridMaxCnt = 3; const int ReConnectTGridMaxCnt = 60;
...@@ -94,7 +94,7 @@ namespace FlyADBase ...@@ -94,7 +94,7 @@ namespace FlyADBase
//3秒内收不到1个timegrid ,就会重连 //60秒内收不到1个timegrid ,就会重连
PollModule.Current.Poll_Config(PollModule.POLL_CONFIG.ADD, PollModule.Current.Poll_Config(PollModule.POLL_CONFIG.ADD,
() => () =>
{ {
...@@ -108,6 +108,7 @@ namespace FlyADBase ...@@ -108,6 +108,7 @@ namespace FlyADBase
if (noTGridCnt >= ReConnectTGridMaxCnt) if (noTGridCnt >= ReConnectTGridMaxCnt)
{ {
noTGridCnt = 0; noTGridCnt = 0;
logger.Error("60秒都无法接收到ad盒的timegrid,reconnect");
ReConnect(); ReConnect();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment