{"action":"created","issue":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/482","repository_url":"https://api.github.com/repos/docker-java/docker-java","labels_url":"https://api.github.com/repos/docker-java/docker-java/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/docker-java/docker-java/issues/482/comments","events_url":"https://api.github.com/repos/docker-java/docker-java/issues/482/events","html_url":"https://github.com/docker-java/docker-java/issues/482","id":136684283,"number":482,"title":"Read Timed out for Events","user":{"login":"triggetry","id":675872,"avatar_url":"https://avatars.githubusercontent.com/u/675872?v=3","gravatar_id":"","url":"https://api.github.com/users/triggetry","html_url":"https://github.com/triggetry","followers_url":"https://api.github.com/users/triggetry/followers","following_url":"https://api.github.com/users/triggetry/following{/other_user}","gists_url":"https://api.github.com/users/triggetry/gists{/gist_id}","starred_url":"https://api.github.com/users/triggetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triggetry/subscriptions","organizations_url":"https://api.github.com/users/triggetry/orgs","repos_url":"https://api.github.com/users/triggetry/repos","events_url":"https://api.github.com/users/triggetry/events{/privacy}","received_events_url":"https://api.github.com/users/triggetry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker-java/docker-java/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-26T12:23:12Z","updated_at":"2016-02-26T12:48:15Z","closed_at":"2016-02-26T12:39:41Z","body":"I am trying to build some kind of \"Docker Event Monitor\". So, I want to track docker events for over an unlimeted amount of time.\r\n\r\nI am starting the docker event command using  `dockerClient.eventsCmd().exec( this.callback )`.\r\nIt works fine as long there are frequent docker events every couple of seconds.\r\n\r\nHowever, when there was no docker event for a longer time (about half a minute) I am getting a Read Timeout and the callback is shutting down with `onComplete()`. Also, trying to close the callback / stream using `this.callback.close()` blocks for a certain time until a read time out occurs.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/comments/189261476","html_url":"https://github.com/docker-java/docker-java/issues/482#issuecomment-189261476","issue_url":"https://api.github.com/repos/docker-java/docker-java/issues/482","id":189261476,"user":{"login":"triggetry","id":675872,"avatar_url":"https://avatars.githubusercontent.com/u/675872?v=3","gravatar_id":"","url":"https://api.github.com/users/triggetry","html_url":"https://github.com/triggetry","followers_url":"https://api.github.com/users/triggetry/followers","following_url":"https://api.github.com/users/triggetry/following{/other_user}","gists_url":"https://api.github.com/users/triggetry/gists{/gist_id}","starred_url":"https://api.github.com/users/triggetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triggetry/subscriptions","organizations_url":"https://api.github.com/users/triggetry/orgs","repos_url":"https://api.github.com/users/triggetry/repos","events_url":"https://api.github.com/users/triggetry/events{/privacy}","received_events_url":"https://api.github.com/users/triggetry/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T12:48:15Z","updated_at":"2016-02-26T12:48:15Z","body":"@marcuslinke @KostyaSha Ok, thanks for the fast reply. Actually,in my use case I never want the connection to time out, because I will never know **when** the next docker event will occur.\r\nIs this possible?"}}