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

部分机型的一次打开正常,重新打开就不行了 #483

Open
360060316 opened this issue Feb 19, 2023 · 2 comments
Open

部分机型的一次打开正常,重新打开就不行了 #483

360060316 opened this issue Feb 19, 2023 · 2 comments

Comments

@360060316
Copy link

部分机型的一次打开正常,重新打开就不行了,退出 杀进程都不行,但是第一次打开100%成功 这是什么问题

@yanzhenjie
Copy link
Owner

应该是端口没释放,你看看listener的回调,应该有错误过来。然后你的AndServer的版本号是多少?

@wang-neng
Copy link

部分机型的一次打开正常,重新打开就不行了,退出 杀进程都不行,但是第一次打开100%成功 这是什么问题

端口,除非你主动使用socket.close()释放端口,不然会执行 2MSL(Maximum Segment Lifetime 最大报文生存时间)逻辑。
终极绝招:重启手机,资源全部给你释放掉。

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

No branches or pull requests

3 participants