LearnBoost / cluster

Node.JS multi-core server manager with plugins support.
http://learnboost.github.com/cluster
MIT License
2.29k stars 159 forks source link

Can't connect to REPL via socket #136

Closed diversario closed 13 years ago

diversario commented 13 years ago

I can't connect to REPL via socket no matter what. Haven't been able to do that, not once. I .use(cluster.repl('./sock/cluster.sock')) and when I try to telnet into it: telnet: could not resolve sock/cluster.sock/telnet: Name or service not known Same with /var/run/cluster.sock. I can only telnet into cluster via port. What could be the problem with this?

tj commented 13 years ago

from what i've seen telnet sometimes doesn't like local sockets, or you have to provide a full path, or try netcat like nc -U path/to/cluster.sock

diversario commented 13 years ago

Netcat worked with a socket, nice.

So, it is generally more reliable to listen on a port rather than socket?

tj commented 13 years ago

I wouldn't really say reliable but just more accessible maybe. Just make sure you bind to loopback so you dont expose the REPL haha, that could get ugly