[erlang-questions] max timeout

Serge Aleynikov saleyn@REDACTED
Wed Aug 20 12:38:59 CEST 2008


So, does this mean that #1 below is indeed the right answer and that 
'receve after' implementation correctly deals with bignums between 2^27 
and 2^32?

1. 2^32 (this is what's documented, but only seems to work in the shell)
2. 2^32-1 = 49.5 days
3. Erlang's small integers (2^27-1 = 1.5 days)

Bjorn Gustavsson wrote:
> On Tue, Aug 19, 2008 at 9:42 AM, Matthias Lang <matthias@REDACTED>wrote:
> 
>> This may be the thread you remember, it starts here:
>>
>>
>> http://www.erlang.org/pipermail/erlang-questions/2008-February/032609.html
>>
>> Executive summary: In R11B-2, a timeout of 16#ffffFFFF doesn't work as
>>    expected on a 32-bit machine. Something changed between R11B-2 and
>>    R11B-5 which made it work in the shell, but still not in compiled
>>    code. I haven't noticed anything in the release notes saying it's
>>    been fixed for real.
>>
> 
> Actually, a value of 16#ffffFFFF sometimes works, sometimes doesn't. It has
> nothing to do with whether it is executed from the shell or from compiled
> code.
> 
> The problem is an integer overflow. We will include a correction in R12B-4.
> 
> /Bjorn
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list