{"action":"opened","issue":{"url":"https://api.github.com/repos/jurmous/etcd4j/issues/134","repository_url":"https://api.github.com/repos/jurmous/etcd4j","labels_url":"https://api.github.com/repos/jurmous/etcd4j/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/jurmous/etcd4j/issues/134/comments","events_url":"https://api.github.com/repos/jurmous/etcd4j/issues/134/events","html_url":"https://github.com/jurmous/etcd4j/issues/134","id":192850297,"number":134,"title":"Hangs on waitForChange if connection breaks","user":{"login":"Bumper03","id":4444507,"avatar_url":"https://avatars.githubusercontent.com/u/4444507?v=3","gravatar_id":"","url":"https://api.github.com/users/Bumper03","html_url":"https://github.com/Bumper03","followers_url":"https://api.github.com/users/Bumper03/followers","following_url":"https://api.github.com/users/Bumper03/following{/other_user}","gists_url":"https://api.github.com/users/Bumper03/gists{/gist_id}","starred_url":"https://api.github.com/users/Bumper03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bumper03/subscriptions","organizations_url":"https://api.github.com/users/Bumper03/orgs","repos_url":"https://api.github.com/users/Bumper03/repos","events_url":"https://api.github.com/users/Bumper03/events{/privacy}","received_events_url":"https://api.github.com/users/Bumper03/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T13:44:15Z","updated_at":"2016-12-01T13:44:15Z","closed_at":null,"body":"Hy!\r\n\r\nIs there any way to get notified if the connection to the etcd server breaks during a waitForChange?\r\n\r\nSample code:\r\n```java\r\ntry {\r\n\tEtcdClient etcdClient = new EtcdClient(URI.create(System.getenv(\"etcd1.local\")))\r\n\tEtcdResponsePromise<EtcdKeysResponse> request = etcdClient.getDir(\"testDir\").recursive().waitForChange().send();\r\n\trequest.addListener(promise -> {\r\n\t    //it is not executed if I kill the etcd server \r\n\t  \r\n\t});\r\n} catch (Exception e) {\r\n\t//it is not executed if I kill the etcd server\r\n}\r\n```"}}
{"actor":{"display_login":"Bumper03"}}