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
public synchronized Stomp connect(List<Header> headers) { if (connected || connecting) { return this; } websocket = task .setOnOpen((ws, res) -> doOnOpened(headers)) .setOnMessage((ws, msg) -> msgCodec.decode(msg.toString(), this::receive)) .setOnException((ws, e) -> doOnException(e)) .setOnClosed((ws, close) -> doOnClosed(close)) .listen(); connecting = true; disconnecting = false; return this; }
断点发现一个问题, 1.正常运行状态下,断开服务器,会调用onclosed 2.断开立马进行重连,会回调onexception报服务器502错误,connecting被设置成false 3.稍后再次进行stomp.connect() 服务器还没有重启好 connecting被设置成了true,然后onexception也不回调,导致connecting一直是true,然后connect的时候一直return this 无法重新连接
The text was updated successfully, but these errors were encountered:
已在 v3.4.7 与 v3.5.2 中修复: https://github.com/ejlchina/okhttps/releases/tag/v3.4.7 https://github.com/ejlchina/okhttps/releases/tag/v3.5.2
v3.4.7
v3.5.2
Sorry, something went wrong.
No branches or pull requests
断点发现一个问题,
1.正常运行状态下,断开服务器,会调用onclosed
2.断开立马进行重连,会回调onexception报服务器502错误,connecting被设置成false
3.稍后再次进行stomp.connect() 服务器还没有重启好 connecting被设置成了true,然后onexception也不回调,导致connecting一直是true,然后connect的时候一直return this 无法重新连接
The text was updated successfully, but these errors were encountered: