{"action":"created","issue":{"url":"https://api.github.com/repos/CodisLabs/jodis/issues/21","repository_url":"https://api.github.com/repos/CodisLabs/jodis","labels_url":"https://api.github.com/repos/CodisLabs/jodis/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/CodisLabs/jodis/issues/21/comments","events_url":"https://api.github.com/repos/CodisLabs/jodis/issues/21/events","html_url":"https://github.com/CodisLabs/jodis/issues/21","id":164267586,"number":21,"title":"这个方法经常会抛出异常，read timeout 或者Unexpected end of stream  怎么避免？","user":{"login":"chinaer","id":11851136,"avatar_url":"https://avatars.githubusercontent.com/u/11851136?v=3","gravatar_id":"","url":"https://api.github.com/users/chinaer","html_url":"https://github.com/chinaer","followers_url":"https://api.github.com/users/chinaer/followers","following_url":"https://api.github.com/users/chinaer/following{/other_user}","gists_url":"https://api.github.com/users/chinaer/gists{/gist_id}","starred_url":"https://api.github.com/users/chinaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinaer/subscriptions","organizations_url":"https://api.github.com/users/chinaer/orgs","repos_url":"https://api.github.com/users/chinaer/repos","events_url":"https://api.github.com/users/chinaer/events{/privacy}","received_events_url":"https://api.github.com/users/chinaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-07T09:31:46Z","updated_at":"2016-07-20T03:43:48Z","closed_at":null,"body":"```\r\n  /**\r\n   * This methods assumes there are required bytes to be read. If we cannot read anymore bytes an\r\n   * exception is thrown to quickly ascertain that the stream was smaller than expected.\r\n   */\r\n  private void ensureFill() throws JedisConnectionException {\r\n    if (count >= limit) {\r\n      try {\r\n        limit = in.read(buf);\r\n        count = 0;\r\n        if (limit == -1) {\r\n          throw new JedisConnectionException(\"Unexpected end of stream.\");\r\n        }\r\n      } catch (IOException e) {\r\n        throw new JedisConnectionException(e);\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n@Apache9\r\n"},"comment":{"url":"https://api.github.com/repos/CodisLabs/jodis/issues/comments/233830814","html_url":"https://github.com/CodisLabs/jodis/issues/21#issuecomment-233830814","issue_url":"https://api.github.com/repos/CodisLabs/jodis/issues/21","id":233830814,"user":{"login":"chinaer","id":11851136,"avatar_url":"https://avatars.githubusercontent.com/u/11851136?v=3","gravatar_id":"","url":"https://api.github.com/users/chinaer","html_url":"https://github.com/chinaer","followers_url":"https://api.github.com/users/chinaer/followers","following_url":"https://api.github.com/users/chinaer/following{/other_user}","gists_url":"https://api.github.com/users/chinaer/gists{/gist_id}","starred_url":"https://api.github.com/users/chinaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinaer/subscriptions","organizations_url":"https://api.github.com/users/chinaer/orgs","repos_url":"https://api.github.com/users/chinaer/repos","events_url":"https://api.github.com/users/chinaer/events{/privacy}","received_events_url":"https://api.github.com/users/chinaer/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T03:43:48Z","updated_at":"2016-07-20T03:43:48Z","body":"我没有通过pipeline，我就是用你的例子，不停循环set随机数，这个串不要太长，循环1w次，应该就能重现，你可以重现一下看看，我就追踪到jedis的这个方法出错，但是不知道怎么解决？@spinlock"}}
{"actor":{"display_login":"chinaer"}}