• src/sbbs3/nopen.h userdat.c

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, November 11, 2024 01:36:47
    https://gitlab.synchro.net/main/sbbs/-/commit/f48e62df363337484edc84fd
    Modified Files:
    src/sbbs3/nopen.h userdat.c
    Log Message:
    Reduce LOOP_NOPEN and LOOP_USERDAT from 500 to 100

    With the incremental backoffs, these were super long waits for locks. Not sure about my math there, but at 500, the total timeout was not "about 45 seconds" but rather several minutes.

    At 100, the total max retry time should be almost exactly 45 seconds:

    Retries ms-per total seconds
    0 - 9 0 0
    10 - 19 100 1
    20 - 29 200 3
    30 - 39 300 6
    40 - 49 400 10
    50 - 59 500 15
    60 - 69 600 21
    70 - 79 700 28
    80 - 89 800 36
    90 - 99 900 45*
    100 - 109 1000 55
    110 - 119 1100 66
    120 - 129 1200 78
    130 - 139 1300 91
    140 - 149 1400 105
    150 - 159 1500 120
    160 - 169 1600 136
    170 - 179 1700 153
    180 - 189 1800 171
    190 - 200 1900 200!

    ... so yeah, 500 was way too big a number.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net