Branch_oumei
parent
052c464f60
commit
de1e17be67
|
@ -17,7 +17,7 @@ function Network.New(type, socket)
|
|||
instance.sendFlag = false --监听收到消息的标记,发送时标记为true,收到消息则标记为false
|
||||
instance.maxResendTimes = 3 --最大重发次数,超过该时间则取消发送
|
||||
instance.sendWaitTime = 0 --记录消息等待时间(秒)
|
||||
instance.maxSendWaitTime = 5 --消息重发等待时间(秒),超过该时间会重发消息
|
||||
instance.maxSendWaitTime = 10 --消息重发等待时间(秒),超过该时间会重发消息
|
||||
instance.sendFunc = nil --请求缓存
|
||||
instance.sendFuncQueue = Queue.New() --请求缓存列表,当一帧发送多个请求时,缓存等待上一个请求收到回调时,执行下一个请求
|
||||
|
||||
|
@ -25,7 +25,7 @@ function Network.New(type, socket)
|
|||
instance.reconnectFlag = false --记录断线重连标记
|
||||
instance.re_maxResendTimes = 2 --最大断线重发次数,超过该时间则取消发送
|
||||
instance.re_sendWaitTime = 0 --记录断线等待时间(秒)
|
||||
instance.re_maxSendWaitTime = 5 --消息断线重发等待时间(秒),超过该时间会重连
|
||||
instance.re_maxSendWaitTime = 10 --消息断线重发等待时间(秒),超过该时间会重连
|
||||
|
||||
instance.disconnectWaitTime = 0 --记录断开后等待时间,重连后会重新计算
|
||||
instance.maxDisconnectWaitTime = 180 --断开后最大等待时间
|
||||
|
|
Loading…
Reference in New Issue