{"action":"created","issue":{"url":"https://api.github.com/repos/erlio/vernemq/issues/157","repository_url":"https://api.github.com/repos/erlio/vernemq","labels_url":"https://api.github.com/repos/erlio/vernemq/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/erlio/vernemq/issues/157/comments","events_url":"https://api.github.com/repos/erlio/vernemq/issues/157/events","html_url":"https://github.com/erlio/vernemq/issues/157","id":161173228,"number":157,"title":"Subscribe after reconnect may duplicate subscription","user":{"login":"mtappler","id":4716251,"avatar_url":"https://avatars.githubusercontent.com/u/4716251?v=3","gravatar_id":"","url":"https://api.github.com/users/mtappler","html_url":"https://github.com/mtappler","followers_url":"https://api.github.com/users/mtappler/followers","following_url":"https://api.github.com/users/mtappler/following{/other_user}","gists_url":"https://api.github.com/users/mtappler/gists{/gist_id}","starred_url":"https://api.github.com/users/mtappler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtappler/subscriptions","organizations_url":"https://api.github.com/users/mtappler/orgs","repos_url":"https://api.github.com/users/mtappler/repos","events_url":"https://api.github.com/users/mtappler/events{/privacy}","received_events_url":"https://api.github.com/users/mtappler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-20T11:23:31Z","updated_at":"2016-06-20T12:32:37Z","closed_at":null,"body":"This issue is related to #155 but not the same. \r\nI am currently investigating the behaviour of several MQTT-brokers in an automated manner and so I occasionally come across odd test sequences, like the following. Although it is probably not a normal use case, it may reveal unwanted behaviour.\r\n\r\nI connect with a client with client identifier `\"Client1\"` then I subscribe to a topic `\"my_topic\"`. Afterwards I open another TCP-connection and connect with client identifier `\"Client1\"` again (this time with a non-clean session). Everything works as expected: the first client gets disconnected and a new connection is established.\r\n\r\nI again subscribe to the topic `\"my_topic\"` with the reconnected client. In a last step I publish a message `\"i_am_the_second_client\"` to `\"my_topic\"` with QoS 0. In response to that I receive this message twice. \r\n\r\nI would actually expect to receive `\"i_am_the_second_client\"` only once which I think is in line with the MQTT-specification as new subscription should replace existing ones. \r\n\r\nI checked this with the latest version of VerneMQ on Ubuntu 14.04. "},"comment":{"url":"https://api.github.com/repos/erlio/vernemq/issues/comments/227129152","html_url":"https://github.com/erlio/vernemq/issues/157#issuecomment-227129152","issue_url":"https://api.github.com/repos/erlio/vernemq/issues/157","id":227129152,"user":{"login":"ioolkos","id":282359,"avatar_url":"https://avatars.githubusercontent.com/u/282359?v=3","gravatar_id":"","url":"https://api.github.com/users/ioolkos","html_url":"https://github.com/ioolkos","followers_url":"https://api.github.com/users/ioolkos/followers","following_url":"https://api.github.com/users/ioolkos/following{/other_user}","gists_url":"https://api.github.com/users/ioolkos/gists{/gist_id}","starred_url":"https://api.github.com/users/ioolkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioolkos/subscriptions","organizations_url":"https://api.github.com/users/ioolkos/orgs","repos_url":"https://api.github.com/users/ioolkos/repos","events_url":"https://api.github.com/users/ioolkos/events{/privacy}","received_events_url":"https://api.github.com/users/ioolkos/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T12:32:37Z","updated_at":"2016-06-20T12:32:37Z","body":"You're correct... this seems to say that QoS is somehow exterior to the topic filter. \r\n\r\nSo yes, we have to look into this :)"}}
{"actor":{"display_login":"ioolkos"}}