[erlang-questions] Thoughts on when to use 'infinity' timeouts for gen_server:call and friends

Allan Wegan allanwegan@REDACTED
Wed Aug 4 23:54:12 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010-08-03 20:35, Kenneth Lundin wrote:
> We are however seriously considering to deprecate gen_server:call/2
and recommend all users to use gen_server:call/3 with infinity timeout
for all calls except some rare occasions where it really is motivated to
have a timeout and the user is prepared to handle all the potential
problems and raises with that.

I think, that would be the best solution. Just deprecate server:call/2.
And update the documentation for server:call/3 to mention the timeout
problem and that 'infinity' ist most often the right choice.

Then any one could just look into the doc and see the red bordered
warning about wrong timeout choices and possible undesired behavior
under heavy load...



- -- 
Allan Wegan
Jabber: allanwegan@REDACTED
ICQ:    209459114
Phone:  +49 40 6732962
Schöneberger Strasse 60, 22149 Hamburg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)

iQEcBAEBAgAGBQJMWeGEAAoJENm5axHh7Acxf+wH+wWAHnN8LLFYIimqGpCk2P6J
f8KOypZhesb9yLonHXAPcbjNhyDVbN8TF8SSv3p6bZCOtj/oZ7zBegfwEe8SjMoW
bq7vqMFUEOEWoyeRQO3akOgllnEZd6sTWHmVH2uQeWmBRwc8rrKLMDmWsKhDBheg
uBO6vsSCxnlcxMqUqbh1ag8ljLs9BdfaTSxtpwtQQQwuNgqhUKPZAzDC8TK0i+de
fmSdNFM5YtVdhEKQW+gqOGIwHzD75e+AjP1DUI5snO4nDpsdkxxEn64WZkNj6GRy
smtuwri4hlPKdG+DygtAka2Vq24aq6DQagq60Z0jTV+JC15r2e6vy/ikUYGIdzw=
=1MPa
-----END PGP SIGNATURE-----


More information about the erlang-questions mailing list