Permalink
Browse files

make reconnects work for unix sockets

  • Loading branch information...
1 parent 2f85ab5 commit 3d4b3d5d1907c6753d13025d83495e6bed88f53f @substack committed Apr 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
@@ -69,7 +69,7 @@ dnode.prototype.connect = function () {
if (params.reconnect) {
stream.on('error', (function (err) {
- if (err.code === 'ECONNREFUSED') {
+ if (err.code === 'ECONNREFUSED' || err.code === 'ENOENT') {
if (client) client.emit('refused');
setTimeout((function () {
View
@@ -1,6 +1,6 @@
{
"name" : "dnode",
- "version" : "0.9.8",
+ "version" : "0.9.9",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [

0 comments on commit 3d4b3d5

Please sign in to comment.