gen_tcp:controlling_process BADARG error ??

2009-05-07
今晚嘗試了一下在ERLANG裡將SOCKET鏈接的控制進程轉到另一個節點上去,結果得了一個{error,badarg}錯誤,代碼如下:
....
{ok, Sock} = gen_tcp:accept(Listener),
Pid = spawn(SomeOtherNode, Mod, Fun, Arg),
ok = gen_tcp:controlling_process(Sock, Pid),
....
看來想用這種方式來將眾多SOCKET鏈接的壓力分擔到多個節點上是不行的 -____- |||

M-OSCAR | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com