Re: timeout exponentially backoff ?

This is a discussion on Re: timeout exponentially backoff ? within the SNMP Users forums, part of the Networking and Network Related category; then, timeout WILL exponentially backoff in the future release of net-snmp? is it better if exponentially backoff ? why the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-22-2005
Lee Melvin
 
Posts: n/a
Default Re: timeout exponentially backoff ?


then, timeout WILL exponentially backoff in the future release of net-snmp?
is it better if exponentially backoff ?
why the comments in snmp_api.h ?

struct snmp_session {
/*
* Protocol-version independent fields
*/
/** snmp version */
long version;
/** Number of retries before timeout. */
int retries;
/** Number of uS until first timeout, then exponential backoff */
long timeout;

thanks.

>
>On Tue, 2005-09-20 at 19:02 +0800, =?gb2312?B?wO4glUY=?= wrote:
> > [Does] timeout really exponentially backoff ?

>
>No.
>
>Looking at the code:
>
>static int
>snmp_resend_request(...)
>{
> :
>
> rp->retries++;
> result = transport->f_send(...);
>
> :
>
> gettimeofday(&now, (struct timezone *) 0);
> tv = now;
> tv.tv_usec += rp->timeout; <=====
> rp->expire = tv;
>}
>
>
>The same timeout value is added each time.
>No back-off algorithm is applied.
>
>Dave
>





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0