Changeset 280e655 for protocols


Ignore:
Timestamp:
2008-08-05T23:07:07Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4230221
Parents:
d84e2a9
Message:

Simple exponential backoff code. Have to add a maximum delay setting,
something like 5*5<300: 5s, multiply by 5 on each failure, but stop
increasing once we hit 5m.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rd84e2a9 r280e655  
    267267           protocols. */
    268268        imc_set_away( ic, u->away );
     269       
     270        /* Apparently we're connected successfully, so reset the
     271           exponential backoff timer. */
     272        ic->acc->auto_reconnect_delay = 0;
    269273}
    270274
     
    331335                 set_getbool( &a->set, "auto_reconnect" ) )
    332336        {
    333                 int delay = set_getint( &irc->set, "auto_reconnect_delay" );
     337                int delay = account_reconnect_delay( a );
    334338               
    335339                imcb_log( ic, "Reconnecting in %d seconds..", delay );
Note: See TracChangeset for help on using the changeset viewer.