[mnet-devel] Re: [mnet-cvs]calculate timeouts according to size of sent message
Arno Waschk
hamamatsu at gmx.de
Tue Feb 17 00:53:40 GMT 2004
yes, but initiating messages can be 250 bytes or very big ("put block",
"message for you").
This was why it was introduced in 0.7. Should at least help in these
cases, and not hurt anywhere else...
Arno
On 16 Feb 2004 19:49:02 -0500, Zooko O'Whielacronx <zooko at zooko.com> wrote:
>
> After talking about this patch with Arno, it occurred to me that
> timeouts have
> no effect on response messages (e.g. the feared "are there messages
> response"),
> only on initiating messages. Therefore, I think we should put timeouts
> back to
> mu + 6 * sigma, or even the one that has been the most tested over the
> last
> months: mu + 2 * sigma.
>
> Regards,
>
> Zooko
>
>> --- MojoTransaction.py 14 Feb 2004 22:17:11 -0000 1.71
>> +++ MojoTransaction.py 17 Feb 2004 00:01:33 -0000 1.72
>> @@ -108,8 +108,8 @@
>> best price auctioning system.
>> """
>>
>> -def calculate_timeout(mu, sigma):
>> - return mu + 3*sigma
>> +def calculate_timeout(mu, sigma, size=500):
>> + return (mu*size/500) + sigma)
>>
>> class Widget:
>> def __init__(self, counterparty_id, firstmsgId=None, payment=0):
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> mnet-devel mailing list
> mnet-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mnet-devel
>
--
http://www.arnowaschk.de
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list