{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/539","repository_url":"https://api.github.com/repos/eclipse/mosquitto","labels_url":"https://api.github.com/repos/eclipse/mosquitto/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/mosquitto/issues/539/comments","events_url":"https://api.github.com/repos/eclipse/mosquitto/issues/539/events","html_url":"https://github.com/eclipse/mosquitto/issues/539","id":254682859,"number":539,"title":"Bridge Enhancement: Add a writable $SYS/broker/bridge/disconnect topic for [temporarily] disconnecting a bridge connection.","user":{"login":"cjmaynard","id":5775227,"avatar_url":"https://avatars3.githubusercontent.com/u/5775227?v=4","gravatar_id":"","url":"https://api.github.com/users/cjmaynard","html_url":"https://github.com/cjmaynard","followers_url":"https://api.github.com/users/cjmaynard/followers","following_url":"https://api.github.com/users/cjmaynard/following{/other_user}","gists_url":"https://api.github.com/users/cjmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/cjmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjmaynard/subscriptions","organizations_url":"https://api.github.com/users/cjmaynard/orgs","repos_url":"https://api.github.com/users/cjmaynard/repos","events_url":"https://api.github.com/users/cjmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/cjmaynard/received_events","type":"User","site_admin":false},"labels":[{"id":339595068,"url":"https://api.github.com/repos/eclipse/mosquitto/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":341853751,"url":"https://api.github.com/repos/eclipse/mosquitto/labels/mosquitto-broker","name":"mosquitto-broker","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-01T15:55:26Z","updated_at":"2018-03-02T13:58:26Z","closed_at":null,"author_association":"NONE","body":"I posted a query about this and didn't receive any negative feedback about the idea, so I’m opening an enhancement request here in the hope that it could be implemented.  My post is here: http://dev.eclipse.org/mhonarc/lists/mosquitto-dev/msg01611.html.\r\n\r\nBasically, I have a bridge that can connect to more than one possible remote broker, each one reachable via a separate interface.  I would like to be able to force the bridge to close its current connection under certain conditions so that it can establish a new connection with the alternate remote broker much quicker than it otherwise would.\r\n\r\nThe specific use case that I have is that if I’m able to detect that an interface is down (such as if the Ethernet cable becomes disconnected), I would like to cause the bridge to immediately abandon its current connection if it happens to be communicating with a remote broker over that particular interface so that it can more quickly establish a connection with the other remote broker over the other interface, rather than having to wait for timers to expire, which takes much longer to occur.  It is possible to reduce timeout values somewhat, such as the keepalive value, but it’s still not responsive enough and has the unfortunate side-effect of introducing more frequent traffic, which we’d also like to avoid.  It’s important for us to remain connected as much as possible in the event data needs to be sent, but we need to keep data usage as low as possible when we’re not actively transmitting data.  I would think data usage would be a common concern for many people?\r\n\r\nI’ve seen some recent activity surrounding issue #535 and while I don’t think the resolution of that issue will directly solve this one, there does seem to be interest in being able to control the broker via writable topics, so in keeping with issue #535, I might propose a writable topic of `$SYS/broker/bridge/disconnect` as a possible solution to this issue.  I’m open to other possible alternatives that accomplish the same goal though.  I’m also fine with adding “`allow_sys_update true`” to the`mosquitto.conf` file, as described in issue #535.\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/comments/369927532","html_url":"https://github.com/eclipse/mosquitto/issues/539#issuecomment-369927532","issue_url":"https://api.github.com/repos/eclipse/mosquitto/issues/539","id":369927532,"user":{"login":"toast-uz","id":29350155,"avatar_url":"https://avatars1.githubusercontent.com/u/29350155?v=4","gravatar_id":"","url":"https://api.github.com/users/toast-uz","html_url":"https://github.com/toast-uz","followers_url":"https://api.github.com/users/toast-uz/followers","following_url":"https://api.github.com/users/toast-uz/following{/other_user}","gists_url":"https://api.github.com/users/toast-uz/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-uz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-uz/subscriptions","organizations_url":"https://api.github.com/users/toast-uz/orgs","repos_url":"https://api.github.com/users/toast-uz/repos","events_url":"https://api.github.com/users/toast-uz/events{/privacy}","received_events_url":"https://api.github.com/users/toast-uz/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T13:58:26Z","updated_at":"2018-03-02T13:58:26Z","author_association":"CONTRIBUTOR","body":"@cjmaynard , could you close this issue as a duplicate of #584 and #535 ?"}}
{"actor":{"display_login":"toast-uz"}}