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 #189

Open
dongwenjia opened this issue Nov 2, 2023 · 5 comments
Open

服务重新启动,客户端重连bug #189

dongwenjia opened this issue Nov 2, 2023 · 5 comments

Comments

@dongwenjia
Copy link

昨天拉下来的代码 tcp 客户端和服务器分别运行在不同机器上(linux),客户端连接上服务端,一切运行正常,这个时候把服务端设备操作系统从新启动后启动tcp服务,就会导致客户端重连不上服务,总是连接超时失败,只能关闭客户端,在启动客户端就能连接上,注意:服务器设备系统重新启动,客户端保持运行中(支持断线重连)

@xia-chu
Copy link
Member

xia-chu commented Nov 2, 2023

看看git hash 呢?

@dongwenjia
Copy link
Author

我刚看了下代码,你是:28b7aea107089c17c6f10e8657d27a0815f85b25

@xia-chu
Copy link
Member

xia-chu commented Nov 2, 2023

所以你用zlm是作为tcp客户端还是服务端?

@dongwenjia
Copy link
Author

所以你用zlm是作为tcp客户端还是服务端?
客户端和服务端 多是用 ZLToolKit 做的,测试用例是test_tcpClient 和 test_tcpEchoServer ,我只是在test_tcpClient 上修改了下支持断线重连功能,

@xia-chu
Copy link
Member

xia-chu commented Nov 3, 2023

看看服务端和设备端日志?

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

2 participants