net server constantly fires "close" event, not sure why

33 views
Skip to first unread message

Noah Hinrichs

unread,
Sep 18, 2014, 12:58:57 PM9/18/14
to nod...@googlegroups.com
I have  dirt simple TCP client/server setup to pass messages between two of my apps.  I have a handler on the client that keeps track of disconnects and automatically reconnects when that happens.  For some reason the client fires the "close" event about every second.  The server doesn't report the disconnect but the client seems to think it's not connected.  What's really odd is that the message traffic between the two doesn't seem to be affected by this and seems to flow normally.

Node version 0.10.31 running on mac 

Anyone have any ideas what might be causing this strange behavior?

I wouldn't mind the events being fired other than when logging is enabled it spams my logs up pretty badly.

Thanks,

Noah

Floby

unread,
Sep 22, 2014, 5:47:37 AM9/22/14
to nod...@googlegroups.com
It's hard to say without a sample of your code.
Reply all
Reply to author
Forward
0 new messages