priestjim / gen_rpc

A scalable RPC library for Erlang-VM based languages
Apache License 2.0
221 stars 81 forks source link

A gen_rpc:call on some undef function call manifests as blocking timeout and reason returned as timeout. #10

Closed linearregression closed 9 years ago

linearregression commented 9 years ago

See pull request https://github.com/priestjim/gen_rpc/pull/9

Some errors are not returned as erlang term when they use exceptions. This crashes at erlang: term_to_binary. But instead of failing fast and report, acceptor is still at waiting for data from spawned process until timeout per setting, and will report error as timeout to original caller.

This confuses the original caller as what to fix and also has a cascading effect.

linearregression commented 9 years ago

merged; https://github.com/priestjim/gen_rpc/pull/9