[erlang-questions] erlang gen_tcp:connect/3 not working with rpc:call/4, anyone knows why?
Allen Kim
bighostkim@REDACTED
Wed Sep 21 16:43:48 CEST 2011
Hi,
Could not solve this by myself
1. launched a new node A with ssh command
2. started a new node B
3. gen_tcp:connect/3 works on B, but rpc:call(B,gen_tcp,connect,Params)
not works.
Both nodes are running on local laptop
and one node returns ok and the other node returns error.
I don't understand.
Anyone knows why?
~ $ssh allen@REDACTED 'erl -name loadtest@REDACTED -detached
-setcookie loadtest'
~ $erl -name allen@REDACTED -setcookie loadtest
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.4 (abort with ^G)
(allen@REDACTED)1> gen_tcp:connect("www.google.com",80,[]).
{ok,#Port<0.630>}
(allen@REDACTED)2>
rpc:call('loadtest@REDACTED',gen_tcp,connect,["www.google.com",80,[]]).
{error,nxdomain}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110921/4b211411/attachment.htm>
More information about the erlang-questions
mailing list