[erlang-bugs] rpc to local node ignores timeout
Ulf Wiger
ulf@REDACTED
Fri Jun 8 14:06:37 CEST 2012
Heh! Very nice. :)
BR,
Ulf
On 8 Jun 2012, at 13:09, Richard Carlsson wrote:
> 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
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com
More information about the erlang-bugs
mailing list