godaddy / node-cluster-service

Turn your single process code into a fault-resilient, multi-process service with built-in REST & CLI support. Restart or hot upgrade your web servers with zero downtime or impact to clients.

Home Page:https://www.npmjs.org/package/cluster-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECONNRESET on REST command

asilvas opened this issue · comments

cservice:  Running remote command: http://localhost:11987/cli?cmd=restart%20all&accessKey={ACCESS_KEY}
{ [Error: socket hang up] code: 'ECONNRESET' }

This appears to be due to:

http://stackoverflow.com/questions/18692580/node-js-post-causes-error-socket-hang-up-code-econnreset

The code in question:

"Content-Length": body.length

Fixed.