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

External client disconnect is not recognized by cli #72

Closed
gitseti opened this issue Sep 5, 2019 · 0 comments
Closed

External client disconnect is not recognized by cli #72

gitseti opened this issue Sep 5, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gitseti
Copy link
Contributor

gitseti commented Sep 5, 2019

Expected behavior

If the client gets disconnected in the client context the cli should inform the user that the current context client is no longer available and change the context back to shell-context.

Actual behavior

The context client is shown, even though it got disconnected, and if a command with that client is used it will throw an error.

To Reproduce

In one terminal 1:
hivemq-cli shell
con -i client
client>

In terminal 2:
hivemq-cli shell
con -i client
E. g. hivemq will produce: Disconnecting already connected client with id client because another client connects with that id
client>

In terminal 1:
client> still shown, but it's actually not connected anymore.
client> pub -t topic -m msg will throw PUBLISH to topic failed with MQTT client is not connected.

Details

  • Affected HiveMQ CLI version(s): 1.0
  • Used JVM version: 11
@gitseti gitseti added the bug Something isn't working label Sep 5, 2019
@gitseti gitseti changed the title Client disconnect External client disconnect is not recognized by cli Sep 5, 2019
@gitseti gitseti self-assigned this Sep 27, 2019
@gitseti gitseti closed this as completed Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant