[erlang-questions] First send from JInterface ok, second one blocs??

Alexander Lamb <>
Mon May 12 19:32:22 CEST 2008


Some more information: even if I create a new mailbox before each  
send, it behaves the same way. Impossible to do a second message send  
(or a ping). If I restart the java application, even without  
restarting the erlang server, it again works for the first send.

Alex

Le 12 mai 08 à 18:43, Alexander Lamb a écrit :

> Hello,
>
> I have something curious happening when sending messages to the rex
> rpc server.
>
> The first time I send a message, everything is ok. The second time, it
> blocs and I finally get a timeout (e.g. the response is null).
>
> I activated the trace, and here is what I get:
>
> -> PUBLISH (r4)  port=55076
> <- OK
> -> LOOKUP (r4) 
> <- PORT 55021
> -> MD5 CONNECT TO kirk.local:55021
> -> HANDSHAKE sendName flags=3332 dist=5 local=
> <- HANDSHAKE recvStatus (ok) local=
> <- HANDSHAKE recvChallenge from= challenge=1257096912
> local=
> -> HANDSHAKE sendChallengeReply challenge=-63103116
> digest=16202c1233ac821560450cd85550f542 local=
> <- HANDSHAKE recvChallengeAck from=
> digest=c223cd415468ff024d0529992ab8ec48 local=
> -> REG_SEND {6,#Pid<>,'',rex}
>    {#Pid<>,{call,profiles,get_default_menus,
> [[84,79,80]],user}}
> <- SEND {2,'',#Pid<>}
>    {rex,{ok,[{menu,home,{{home,"Home"},[{login,"Login"},
> {logout,"Logout"},{about,"About"}]}},{menu,patients,
> {{patients,"Patients"},[]}},{menu,centers,{{centers,"Centers"},
> [{search,"Search"},{list,"List"}]}},{menu,dashboard,
> {{dashboard,"Dashboard"},[{enrollment,"Enrollment"},
> {statistics,"Statistics"},{initiation,"Initiation"}]}}]}}
> -> LOOKUP (r4) 
> <- PORT 55021
> -> MD5 CONNECT TO kirk.local:55021
> -> HANDSHAKE sendName flags=3332 dist=5 local=
> -> CLOSE
>
>
> So the funny thing is that something is doing a CLOSE. What does that
> mean??
>
> Thanks,
>
> Alex
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>




More information about the erlang-questions mailing list