Skip to content
New issue

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。 #4

Open
bovenn opened this issue Jan 11, 2019 · 0 comments
Open

两个bug。 #4

bovenn opened this issue Jan 11, 2019 · 0 comments

Comments

@bovenn
Copy link

bovenn commented Jan 11, 2019

首先:有幸看到这个优秀的开源项目,并用于项目实践,多谢
目前发现如下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 通道。 重新维护心跳。

多谢!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant