{"action":"created","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/1010","repository_url":"https://api.github.com/repos/xetorthio/jedis","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/1010/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/1010/events","html_url":"https://github.com/xetorthio/jedis/issues/1010","id":82215348,"number":1010,"title":"Jedispool on close doesnnot return ","user":{"login":"arvindnr","id":12652463,"avatar_url":"https://avatars.githubusercontent.com/u/12652463?v=3","gravatar_id":"","url":"https://api.github.com/users/arvindnr","html_url":"https://github.com/arvindnr","followers_url":"https://api.github.com/users/arvindnr/followers","following_url":"https://api.github.com/users/arvindnr/following{/other_user}","gists_url":"https://api.github.com/users/arvindnr/gists{/gist_id}","starred_url":"https://api.github.com/users/arvindnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvindnr/subscriptions","organizations_url":"https://api.github.com/users/arvindnr/orgs","repos_url":"https://api.github.com/users/arvindnr/repos","events_url":"https://api.github.com/users/arvindnr/events{/privacy}","received_events_url":"https://api.github.com/users/arvindnr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-29T02:09:51Z","updated_at":"2016-04-06T19:55:35Z","closed_at":null,"body":"On request to release the jedis resource the thread stuck on socketRead0. Upon inspection socketInputStream class ,impl.getTimeout() is set to 0 rather 2000 (Default). Sometime is 2000 and some time it 0. When it is 0 it never returns and stuck on socketRead0 (Waiting on jedis to respond).\r\n \r\n    public int read(byte b[], int off, int length) throws IOException {\r\n        return read(b, off, length, impl.getTimeout());\r\n    }\r\n \r\nJedis Version : 2.7.2\r\nRedis Version: Redis server v=2.8.9 \r\n\r\nStack Frame:\r\nSocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) line: not available [native method]\r\nSocketInputStream.socketRead(FileDescriptor, byte[], int, int, int) line: 116   \r\nSocketInputStream.read(byte[], int, int, int) line: 170 \r\nSocketInputStream.read(byte[], int, int) line: 141      \r\nSocketInputStream.read(byte[]) line: 127        \r\nRedisInputStream.ensureFill() line: 195 \r\nRedisInputStream.readByte() line: 40    \r\nProtocol.process(RedisInputStream) line: 132    \r\nProtocol.read(RedisInputStream) line: 196       \r\nClient(Connection).readProtocolWithCheckingBroken() line: 288   \r\nClient(Connection).getAll(int) line: 258        \r\nClient(Connection).getAll() line: 250   \r\nJedis(BinaryJedis).resetState() line: 1653      \r\nJedisPool.returnResource(Jedis) line: 110       \r\nJedisPool.returnResource(Object) line: 12       \r\nJedis.close() line: 3306 \r\n\r\nThanks\r\nArvind Rapaka\r\n"},"comment":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/comments/206532373","html_url":"https://github.com/xetorthio/jedis/issues/1010#issuecomment-206532373","issue_url":"https://api.github.com/repos/xetorthio/jedis/issues/1010","id":206532373,"user":{"login":"srirama-rayaprolu","id":4252136,"avatar_url":"https://avatars.githubusercontent.com/u/4252136?v=3","gravatar_id":"","url":"https://api.github.com/users/srirama-rayaprolu","html_url":"https://github.com/srirama-rayaprolu","followers_url":"https://api.github.com/users/srirama-rayaprolu/followers","following_url":"https://api.github.com/users/srirama-rayaprolu/following{/other_user}","gists_url":"https://api.github.com/users/srirama-rayaprolu/gists{/gist_id}","starred_url":"https://api.github.com/users/srirama-rayaprolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srirama-rayaprolu/subscriptions","organizations_url":"https://api.github.com/users/srirama-rayaprolu/orgs","repos_url":"https://api.github.com/users/srirama-rayaprolu/repos","events_url":"https://api.github.com/users/srirama-rayaprolu/events{/privacy}","received_events_url":"https://api.github.com/users/srirama-rayaprolu/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T19:55:35Z","updated_at":"2016-04-06T19:55:35Z","body":"Hi HeartSaVioR,\r\n\r\nIn case of server is dead/rebooted while executing this command, whether time out will happen or not? At present the my application thread got stuck'ed on the SOCKET read call and not returning. How to over come this.\r\n\r\nThanks in adavance.\r\n\r\nSrirama."}}