375
if !userDataVersionChanged && elapsed < m.config.GetUserDataMinWaitTime {
376
if fastResponseCounter >= maxFastUserDataFetches {
377
>
// maxFastUserDataFetches or more consecutive fast responses, let's throttle!
user_data_manager.go
378
>
util.InterruptibleSleep(ctx, minWaitTime-elapsed)
379
>
// Don't let this get near our call timeout, otherwise we can't tell the difference
380
>
// between a fast reply and a timeout.
381
>
minWaitTime = min(minWaitTime*2, m.config.GetUserDataLongPollTimeout()/2)
382
} else {
383
// Not yet maxFastUserDataFetches consecutive fast responses. A few rapid refreshes for versioned queues