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

Conversation

mchalla
Copy link
Contributor

@mchalla mchalla commented Jul 23, 2024

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.

@coveralls
Copy link
Collaborator

coveralls commented Jul 23, 2024

Coverage Status

coverage: 78.336% (+0.06%) from 78.28%
when pulling 285dfe5 on reset-wait
into c027360 on master.

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 <[email protected]>
@mchalla mchalla merged commit 2ea7e51 into master Jul 26, 2024
5 checks passed
@mchalla mchalla deleted the reset-wait branch July 26, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants