{"action":"closed","issue":{"url":"https://api.github.com/repos/redis/hiredis/issues/304","labels_url":"https://api.github.com/repos/redis/hiredis/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/redis/hiredis/issues/304/comments","events_url":"https://api.github.com/repos/redis/hiredis/issues/304/events","html_url":"https://github.com/redis/hiredis/issues/304","id":56569534,"number":304,"title":"redis-connect: \"poll(2): Interrupted system call (code 1)\"","user":{"login":"WarrenWilkinson","id":2658191,"avatar_url":"https://avatars.githubusercontent.com/u/2658191?v=3","gravatar_id":"","url":"https://api.github.com/users/WarrenWilkinson","html_url":"https://github.com/WarrenWilkinson","followers_url":"https://api.github.com/users/WarrenWilkinson/followers","following_url":"https://api.github.com/users/WarrenWilkinson/following{/other_user}","gists_url":"https://api.github.com/users/WarrenWilkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/WarrenWilkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WarrenWilkinson/subscriptions","organizations_url":"https://api.github.com/users/WarrenWilkinson/orgs","repos_url":"https://api.github.com/users/WarrenWilkinson/repos","events_url":"https://api.github.com/users/WarrenWilkinson/events{/privacy}","received_events_url":"https://api.github.com/users/WarrenWilkinson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-04T18:47:04Z","updated_at":"2015-02-10T17:54:23Z","closed_at":"2015-02-10T17:54:23Z","body":"I've been getting these errors from time to time when I make Redis connections.  They correspond to EINTR.\r\n\r\nIt looks like this issue used to affect other hiredis commands, but was fixed:\r\nhttps://github.com/redis/hiredis/issues/99\r\nhttps://github.com/redis/hiredis/pull/119\r\n\r\nI looked at the RedisContextConnect function and I didn't see any any protection on that function... I think it might have been missed because it's called less often or maybe there is some other reason.\r\n\r\nI'm using a version of hiredis downloaded from github a few days ago.  My application creates connections at a rate of about 10 a second or so (closing them after about 2 seconds), and I operate like that continously for days --- so I'm more likely to run into this situation than other applications and I think it's a probablistic error.\r\n\r\nIf others agree this is an issue worth fixing, I can try to make/submit a pull request.  If not, I'll just deal with the retry in my own code base."}}