{"action":"created","issue":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/231","labels_url":"https://api.github.com/repos/docker-java/docker-java/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/docker-java/docker-java/issues/231/comments","events_url":"https://api.github.com/repos/docker-java/docker-java/issues/231/events","html_url":"https://github.com/docker-java/docker-java/issues/231","id":82133135,"number":231,"title":"Refactor APIs for unbound streaming (attach, log and events commands)","user":{"login":"marcuslinke","id":2578608,"avatar_url":"https://avatars.githubusercontent.com/u/2578608?v=3","gravatar_id":"","url":"https://api.github.com/users/marcuslinke","html_url":"https://github.com/marcuslinke","followers_url":"https://api.github.com/users/marcuslinke/followers","following_url":"https://api.github.com/users/marcuslinke/following{/other_user}","gists_url":"https://api.github.com/users/marcuslinke/gists{/gist_id}","starred_url":"https://api.github.com/users/marcuslinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcuslinke/subscriptions","organizations_url":"https://api.github.com/users/marcuslinke/orgs","repos_url":"https://api.github.com/users/marcuslinke/repos","events_url":"https://api.github.com/users/marcuslinke/events{/privacy}","received_events_url":"https://api.github.com/users/marcuslinke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T21:31:51Z","updated_at":"2015-06-19T05:25:46Z","closed_at":null,"body":"The problem is with unbound streaming thus using log command 'followStream' option or using events command without 'until' option. If the server returns an unbound stream normally there is no chance to cancel the stream as `InputStream#read()' blocks while waiting for chunks to come from the server. This can be solved only by using separate threads as in the current events command implementation.\r\n\r\nI'm still unsatisfied with these different streaming APIs in docker-java. I think all streaming commands should use the same callback driven API as in events command."},"comment":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/comments/113376978","html_url":"https://github.com/docker-java/docker-java/issues/231#issuecomment-113376978","issue_url":"https://api.github.com/repos/docker-java/docker-java/issues/231","id":113376978,"user":{"login":"marcuslinke","id":2578608,"avatar_url":"https://avatars.githubusercontent.com/u/2578608?v=3","gravatar_id":"","url":"https://api.github.com/users/marcuslinke","html_url":"https://github.com/marcuslinke","followers_url":"https://api.github.com/users/marcuslinke/followers","following_url":"https://api.github.com/users/marcuslinke/following{/other_user}","gists_url":"https://api.github.com/users/marcuslinke/gists{/gist_id}","starred_url":"https://api.github.com/users/marcuslinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcuslinke/subscriptions","organizations_url":"https://api.github.com/users/marcuslinke/orgs","repos_url":"https://api.github.com/users/marcuslinke/repos","events_url":"https://api.github.com/users/marcuslinke/events{/privacy}","received_events_url":"https://api.github.com/users/marcuslinke/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T05:25:46Z","updated_at":"2015-06-19T05:25:46Z","body":"There should be no such problem anymore as  https://github.com/docker-java/docker-java/commit/a072d62104d03d53cf2f9a41b95fd527fb6acbb9 has fixed this. Please ensure that you have latest docker-java version in place. Feel free to open a new issue if your problem still persist."}}