{"action":"created","issue":{"url":"https://api.github.com/repos/open-io/oio-api-java/issues/29","repository_url":"https://api.github.com/repos/open-io/oio-api-java","labels_url":"https://api.github.com/repos/open-io/oio-api-java/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/open-io/oio-api-java/issues/29/comments","events_url":"https://api.github.com/repos/open-io/oio-api-java/issues/29/events","html_url":"https://github.com/open-io/oio-api-java/issues/29","id":194018710,"number":29,"title":"`IOException: Unexpected end of stream` on proxy request after period of inactivity","user":{"login":"fvennetier","id":1398191,"avatar_url":"https://avatars.githubusercontent.com/u/1398191?v=3","gravatar_id":"","url":"https://api.github.com/users/fvennetier","html_url":"https://github.com/fvennetier","followers_url":"https://api.github.com/users/fvennetier/followers","following_url":"https://api.github.com/users/fvennetier/following{/other_user}","gists_url":"https://api.github.com/users/fvennetier/gists{/gist_id}","starred_url":"https://api.github.com/users/fvennetier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvennetier/subscriptions","organizations_url":"https://api.github.com/users/fvennetier/orgs","repos_url":"https://api.github.com/users/fvennetier/repos","events_url":"https://api.github.com/users/fvennetier/events{/privacy}","received_events_url":"https://api.github.com/users/fvennetier/received_events","type":"User","site_admin":false},"labels":[{"id":322231328,"url":"https://api.github.com/repos/open-io/oio-api-java/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T10:58:28Z","updated_at":"2016-12-08T00:33:58Z","closed_at":null,"body":"After some period of inactivity, it seems that a connection can be reused after it has been closed server-side, leading to `IOException: Unexpected end of stream`. Following is a shortened stack trace.\r\n```\r\n2016-12-07 10:54:12 Failed to perform request\r\nio.openio.sds.exceptions.OioSystemException: Http request execution error\r\n    at io.openio.sds.http.OioHttp$RequestBuilder.execute(OioHttp.java:235)\r\n    at io.openio.sds.http.OioHttp$RequestBuilder.execute(OioHttp.java:191)\r\n    at io.openio.sds.proxy.ProxyClient.getObjectInfo(ProxyClient.java:711)\r\n    at io.openio.sds.DefaultClient.getObjectInfo(DefaultClient.java:169)\r\n    at io.openio.sds.DefaultClient.getObjectInfo(DefaultClient.java:162)\r\n    \r\n...\r\n\r\nCaused by: java.io.IOException: Unexpected end of stream\r\n    at io.openio.sds.http.OioHttpResponse.read(OioHttpResponse.java:125)\r\n    at io.openio.sds.http.OioHttpResponse.next(OioHttpResponse.java:108)\r\n    at io.openio.sds.http.OioHttpResponse.readHeaders(OioHttpResponse.java:101)\r\n    at io.openio.sds.http.OioHttpResponse.responseHead(OioHttpResponse.java:91)\r\n    at io.openio.sds.http.OioHttpResponse.build(OioHttpResponse.java:46)\r\n    at io.openio.sds.http.OioHttp$RequestBuilder.readResponse(OioHttp.java:255)\r\n    at io.openio.sds.http.OioHttp$RequestBuilder.execute(OioHttp.java:214)\r\n    ... 11 more\r\n```"},"comment":{"url":"https://api.github.com/repos/open-io/oio-api-java/issues/comments/265618075","html_url":"https://github.com/open-io/oio-api-java/issues/29#issuecomment-265618075","issue_url":"https://api.github.com/repos/open-io/oio-api-java/issues/29","id":265618075,"user":{"login":"jkasarherou","id":11393185,"avatar_url":"https://avatars.githubusercontent.com/u/11393185?v=3","gravatar_id":"","url":"https://api.github.com/users/jkasarherou","html_url":"https://github.com/jkasarherou","followers_url":"https://api.github.com/users/jkasarherou/followers","following_url":"https://api.github.com/users/jkasarherou/following{/other_user}","gists_url":"https://api.github.com/users/jkasarherou/gists{/gist_id}","starred_url":"https://api.github.com/users/jkasarherou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkasarherou/subscriptions","organizations_url":"https://api.github.com/users/jkasarherou/orgs","repos_url":"https://api.github.com/users/jkasarherou/repos","events_url":"https://api.github.com/users/jkasarherou/events{/privacy}","received_events_url":"https://api.github.com/users/jkasarherou/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T00:33:58Z","updated_at":"2016-12-08T00:33:58Z","body":"what should be correct behavior? detect such failure and remove connection from the pool?"}}
{"actor":{"display_login":"jkasarherou"}}