We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
首先:有幸看到这个优秀的开源项目,并用于项目实践,多谢 目前发现如下bug: 1.连接上断网后,心跳包会发信息,导致奔溃 SocketClient initHeartBeat 解决:if (mSocket != null && mSocket!!.isConnected && !mSocket!!.isClosed) { mIPoster.enqueue(mHeartBeatConfig.data ?: ByteArray(0)) } 2. 断网后网络恢复重连。因为作者是socket 直接初始化,导致断网前的socket 一直在关闭状态。 解决 :在connect 方法里面初始化mSocket= Socket() 3. 断网重连恢复的方法。 需要再次新生成socket 通道。 重新维护心跳。
多谢!!!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
首先:有幸看到这个优秀的开源项目,并用于项目实践,多谢
目前发现如下bug:
1.连接上断网后,心跳包会发信息,导致奔溃
SocketClient initHeartBeat
解决:if (mSocket != null && mSocket!!.isConnected && !mSocket!!.isClosed) {
mIPoster.enqueue(mHeartBeatConfig.data ?: ByteArray(0))
}
2. 断网后网络恢复重连。因为作者是socket 直接初始化,导致断网前的socket 一直在关闭状态。
解决 :在connect 方法里面初始化mSocket= Socket()
3. 断网重连恢复的方法。
需要再次新生成socket 通道。 重新维护心跳。
多谢!!!
The text was updated successfully, but these errors were encountered: