{"action":"created","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/676","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/676/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/676/events","html_url":"https://github.com/NodeRedis/node_redis/issues/676","id":46257862,"number":676,"title":"Redis connection gone from end event.","user":{"login":"LoicMahieu","id":900947,"avatar_url":"https://avatars.githubusercontent.com/u/900947?v=3","gravatar_id":"","url":"https://api.github.com/users/LoicMahieu","html_url":"https://github.com/LoicMahieu","followers_url":"https://api.github.com/users/LoicMahieu/followers","following_url":"https://api.github.com/users/LoicMahieu/following{/other_user}","gists_url":"https://api.github.com/users/LoicMahieu/gists{/gist_id}","starred_url":"https://api.github.com/users/LoicMahieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoicMahieu/subscriptions","organizations_url":"https://api.github.com/users/LoicMahieu/orgs","repos_url":"https://api.github.com/users/LoicMahieu/repos","events_url":"https://api.github.com/users/LoicMahieu/events{/privacy}","received_events_url":"https://api.github.com/users/LoicMahieu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-10-20T10:58:33Z","updated_at":"2015-08-19T18:23:21Z","closed_at":"2015-08-15T19:53:03Z","body":"I wanted to post this message on a user group or a mailing list but I didn't find anything, especially for node-redis.\r\n\r\nFor several days, I received `Redis connection gone from end event.` error from some nodejs applications.\r\nWhat exactly mean this exception ? Maybe it's a network issue ?\r\nI found these links\r\nhttps://groups.google.com/forum/#!topic/redis-db/5meMdHuJAQI\r\nhttps://code.google.com/p/redis/issues/detail?id=372#c3\r\nThat explains a problem related to `maxclients`. Is it my case ?\r\n\r\n```\r\nredis 2.8.6\r\nnode-redis 0.12.1\r\n```\r\n\r\nRedis info :\r\n# Server\r\nredis_version:2.8.6\r\nredis_git_sha1:00000000\r\nredis_git_dirty:0\r\nredis_build_id:d44fe9286f5a5985\r\nredis_mode:standalone\r\nos:Linux 2.6.32-27-pve x86_64\r\narch_bits:64\r\nmultiplexing_api:epoll\r\ngcc_version:4.6.3\r\nprocess_id:11973\r\nrun_id:acd7b66d57a5eac8f0df532cb5f178b2aeca45f0\r\ntcp_port:6379\r\nuptime_in_seconds:20457496\r\nuptime_in_days:236\r\nhz:10\r\nlru_clock:870477\r\nconfig_file:/etc/redis/slave.conf\r\n\r\n# Clients\r\nconnected_clients:175\r\nclient_longest_output_list:0\r\nclient_biggest_input_buf:0\r\nblocked_clients:0\r\n\r\n# Stats\r\ntotal_connections_received:126218792\r\ntotal_commands_processed:439637652\r\ninstantaneous_ops_per_sec:21\r\nrejected_connections:0\r\nsync_full:8\r\nsync_partial_ok:0\r\nsync_partial_err:0\r\nexpired_keys:2167019\r\nevicted_keys:0\r\nkeyspace_hits:29194286\r\nkeyspace_misses:564730\r\npubsub_channels:2\r\npubsub_patterns:0\r\nlatest_fork_usec:1551\r\n\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/comments/132732252","html_url":"https://github.com/NodeRedis/node_redis/issues/676#issuecomment-132732252","issue_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/676","id":132732252,"user":{"login":"markthethomas","id":4926721,"avatar_url":"https://avatars.githubusercontent.com/u/4926721?v=3","gravatar_id":"","url":"https://api.github.com/users/markthethomas","html_url":"https://github.com/markthethomas","followers_url":"https://api.github.com/users/markthethomas/followers","following_url":"https://api.github.com/users/markthethomas/following{/other_user}","gists_url":"https://api.github.com/users/markthethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/markthethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markthethomas/subscriptions","organizations_url":"https://api.github.com/users/markthethomas/orgs","repos_url":"https://api.github.com/users/markthethomas/repos","events_url":"https://api.github.com/users/markthethomas/events{/privacy}","received_events_url":"https://api.github.com/users/markthethomas/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T18:23:21Z","updated_at":"2015-08-19T18:23:21Z","body":"Sad to have to re-open this so soon, but I've been experiencing the same error using latest stable node-redis (0.12.1) and redis 2.8.1. I seem to get the error every 10 minutes or so  when we're running our node app in a staging docker container (debian:jessie is base image). \r\n\r\nIs this likely to be something related to the redis instance we use? It's regularity seems to indicate a timing-related issue, maybe a timeout or TTL. We've only just noticed it (just started using a redis-backed queue recently). In checking into this error, I've seen some solutions that recommend using something like `client.ping()` on an interval, but this seems to be only a half-measure. Any thoughts/insight would be greatly appreciated. \r\n\r\nThanks!\r\n\r\n````\r\nError: Redis connection gone from end event.\r\n    at RedisClient.flush_and_error (/var/www/app/current/node_modules/redis/index.js:149:13)\r\n    at RedisClient.connection_gone (/var/www/app/current/node_modules/redis/index.js:486:10)\r\n    at Socket.<anonymous> (/var/www/app/current/node_modules/redis/index.js:114:14)\r\n    at Socket.emit (events.js:129:20)\r\n    at _stream_readable.js:908:16\r\n    at process._tickDomainCallback [as _tickCallback] (node.js:381:11)\r\n````"}}