Skip to content

Fix duplicate UDP client keepalive timers - #76

Open
NikoCat233 wants to merge 1 commit into
willardf:mainfrom
NikoCat233:fix/udp-client-keepalive-timer
Open

NikoCat233 wants to merge 1 commit into
willardf:mainfrom
NikoCat233:fix/udp-client-keepalive-timer

Conversation

@NikoCat233

Copy link
Copy Markdown

UdpClientConnection created a second keepalive timer after receiving the Hello ACK, leaving the original timer active. Restart the existing timer before marking the connection connected so interval changes and disposal control a single timer.

Add three regression cases covering interval changes, disabling and re-enabling keepalives, and timer disposal after the handshake.

Validation:

  • All three new cases fail against the original implementation and pass with the fix.
  • Related UDP tests: Debug 23 passed; Release 22 passed, 1 skipped.
  • netstandard2.0 Release build passed.

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.

1 participant