DSharpPlus icon indicating copy to clipboard operation
DSharpPlus copied to clipboard

Rework reconnection logic

Open Plerx2493 opened this issue 2 years ago • 1 comments

Summary

New fields in Config:

  • uint MaximumReconnectionRetries
  • TimeSpan? ReconnectionDelayDuration (Static delay)
  • Func<uint attempt, TimeSpan result>? ReconnectionDelayGenerator (dynamic delay)

To be removed:

  • bool ReconnectIndefinitely

Defaults should have a implementation with some kind of hardlimit (maybe 15-30 min?)

Notes

Currently blocked by #1908

Plerx2493 avatar May 25 '24 17:05 Plerx2493

in the same spirit as #1909 , the duration should use a TimeSpan and instead of the multiplier we might want to take a Func<TimeSpan initial, uint attempt, TimeSpan result>

akiraveliara avatar May 25 '24 17:05 akiraveliara