Skip to content

fix(server): update lastActivityAt on ping packets (#95) - #102

Open
Rodrigoue9 wants to merge 1 commit into
Bitcoindefi:mainfrom
Rodrigoue9:fix/bounty-95
Open

fix(server): update lastActivityAt on ping packets (#95)#102
Rodrigoue9 wants to merge 1 commit into
Bitcoindefi:mainfrom
Rodrigoue9:fix/bounty-95

Conversation

@Rodrigoue9

Copy link
Copy Markdown

Title

fix(server): update lastActivityAt on ping packets to prevent premature inactivity disconnects (#95)

Description

  • Updates ws.lastActivityAt = now before the ping packet early-return inside trackClientActivity.
  • Prevents active mobile and background clients sending keepalive pings from being disconnected by the 15-minute inactivity sweep.

Closes #95

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