[mnet-devel] Re: [mnet-cvs]calculate timeouts according to size of sent message
Zooko O'Whielacronx
zooko at zooko.com
Tue Feb 17 00:49:02 GMT 2004
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
More information about the Mnet-devel
mailing list