error with Cluster + Express

119 views
Skip to first unread message

Tushar Jain

unread,
Aug 9, 2014, 11:32:43 PM8/9/14
to nod...@googlegroups.com
I am trying to use cluster module with express, while doing so if I write code for clustering in a post request handler, I am getting an EINVAl, cannot write to IPC channel error.

Please let me know if anyone has worked around with this.

Thanks


Phillip Johnsen

unread,
Aug 11, 2014, 1:21:41 PM8/11/14
to nod...@googlegroups.com
Hi Tushar,

being a little more specific about what you are trying to accomplish and sharing some code would help.
Have you tried one of the many clustering examples google has found? i.e: http://rowanmanning.com/posts/node-cluster-and-express/

Usually you wouldnt need to write any clustering specific code in request handlers.

Sam Roberts

unread,
Aug 11, 2014, 1:45:07 PM8/11/14
to nod...@googlegroups.com
On Sat, Aug 9, 2014 at 8:32 PM, Tushar Jain <mytu...@gmail.com> wrote:
> I am trying to use cluster module with express, while doing so if I write
> code for clustering in a post request handler, I am getting an EINVAl,
> cannot write to IPC channel error.

Not sure what "code for clustering in a post request handler means",
you should provide example code and also the stack trace so we can see
what calls is EINVALed.

Sam

Tushar Jain

unread,
Aug 13, 2014, 1:44:28 AM8/13/14
to nod...@googlegroups.com
Thanks for the help guyz... 
I made a mistake in my code and was trying to listen express server on 2 ports. 

Reply all
Reply to author
Forward
0 new messages