Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
Any environment
-
Patch Available
Description
Here's the code from thrift_client.erl:
call(Client, Function, Args)
when is_pid(Client), is_atom(Function), is_list(Args) ->
case gen_server:call(Client,
) of
R =
-> R;
R =
-> R;
-> throw(Exception)
end.
But one may want to use the Client variable as an atom (using erlang:register()) or as a tuple
{Node, Pid}.
So, it's better to remove the is_pid() check. If the Client variable is invalid - OTP will just raise the "noproc" exception.