{"action":"created","issue":{"url":"https://api.github.com/repos/mranney/node_redis/issues/587","labels_url":"https://api.github.com/repos/mranney/node_redis/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/mranney/node_redis/issues/587/comments","events_url":"https://api.github.com/repos/mranney/node_redis/issues/587/events","html_url":"https://github.com/mranney/node_redis/issues/587","id":33268712,"number":587,"title":"Doesn't timeout properly when server is unreachable","user":{"login":"celesteking","id":748075,"avatar_url":"https://avatars.githubusercontent.com/u/748075?v=3","gravatar_id":"","url":"https://api.github.com/users/celesteking","html_url":"https://github.com/celesteking","followers_url":"https://api.github.com/users/celesteking/followers","following_url":"https://api.github.com/users/celesteking/following{/other_user}","gists_url":"https://api.github.com/users/celesteking/gists{/gist_id}","starred_url":"https://api.github.com/users/celesteking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celesteking/subscriptions","organizations_url":"https://api.github.com/users/celesteking/orgs","repos_url":"https://api.github.com/users/celesteking/repos","events_url":"https://api.github.com/users/celesteking/events{/privacy}","received_events_url":"https://api.github.com/users/celesteking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-05-11T19:34:58Z","updated_at":"2015-06-21T19:09:01Z","closed_at":null,"body":"```\r\n var r = require('redis').createClient(null, '1.2.3.4', {connect_timeout: 1000}); r.on('ready', function(){ console.log('ready!'); }).on('error', function(err){ console.log('error: ' + err)});\r\n```\r\nIt doesn't timeout after 1 second. It does timeout after unknown amount of time with:\r\n> error: Error: Redis connection to 1.2.3.4:6379 failed - connect ETIMEDOUT\r\n\r\nI think it should follow the docs and error out after specified timeout."},"comment":{"url":"https://api.github.com/repos/mranney/node_redis/issues/comments/113943081","html_url":"https://github.com/mranney/node_redis/issues/587#issuecomment-113943081","issue_url":"https://api.github.com/repos/mranney/node_redis/issues/587","id":113943081,"user":{"login":"BenHall","id":82614,"avatar_url":"https://avatars.githubusercontent.com/u/82614?v=3","gravatar_id":"","url":"https://api.github.com/users/BenHall","html_url":"https://github.com/BenHall","followers_url":"https://api.github.com/users/BenHall/followers","following_url":"https://api.github.com/users/BenHall/following{/other_user}","gists_url":"https://api.github.com/users/BenHall/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHall/subscriptions","organizations_url":"https://api.github.com/users/BenHall/orgs","repos_url":"https://api.github.com/users/BenHall/repos","events_url":"https://api.github.com/users/BenHall/events{/privacy}","received_events_url":"https://api.github.com/users/BenHall/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T19:09:01Z","updated_at":"2015-06-21T19:09:01Z","body":"To reproduce I paused a Redis Docker container but still seeing long timeouts"}}