[erlang-bugs] rpc to local node ignores timeout

Richard Carlsson carlsson.richard@REDACTED
Fri Jun 8 13:09:33 CEST 2012


This behaviour was unexpected:

   rpc:call(node(), timer, sleep, [infinity], 1000)

should yield {badrpc,timeout} after 1 second, but instead it ignores the 
timeout and waits forever. This is due to an "optimization" in the 
rpc.erl module that uses the function local_call/3 (without timeout) if 
the called node is the same as the local node.

     /Richard



More information about the erlang-bugs mailing list