Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip reset.conf if we processed PlatformConfig del #577

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Commits on Jul 25, 2024

  1. Skip reset.conf if we processed PlatformConfig del

    There are 2 scenarios
    1. reset.conf comes immediately after PlatformConfig delete
    We will skip processing it if within a certain time, 5 secs default
    This is so we do not trigger a disconnect twice for the same event,
    one via PlatformConfig delete and other via reset.conf
    
    2. PlatformConfig delete comes after reset.conf
    This should not be an issue since we will not be able to
    get the PlatformConfig event once the connection has been
    reset via reset.conf processing. There is a small race here
    and in that worst case we may process the event twice but
    the window is significantly reduced.
    
    Signed-off-by: Madhu Challa <challa@gmail.com>
    mchalla committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    cdccecc View commit details
    Browse the repository at this point in the history