mranney/node_redis — Issue #160: Can't cl.end() and reconnect be mixed together?
Author: quartzo
Created: 2011-12-15 21:32:41+00:00
State: open

Nobody is answering at the port 6379+1. Why is node dying in this case?

```javascript
var redis = require('redis');
var cl = new redis.createClient(6379+1);
cl.on("error", function (err) { console.log(err); });
cl.get("test",redis.print);
cl.end();
```

gives:
```
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: connect ECONNREFUSED
at errnoException (net.js:614:11)
at Object.afterConnect [as oncomplete] (net.js:605:18)
```