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

Disable websocket heartbeat from the SDK when using the debug-proxy #184

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

Shiranuit
Copy link
Contributor

@Shiranuit Shiranuit commented Feb 28, 2023

What does this PR do?

When using the debug-proxy chances are that you may want to take a heap snapshot, taking a heap snapshot freezes the threads of the Kuzzle Node and prevent Kuzzle from responding to the heartbeat request from the SDK resulting in the SDK closing the connection.

However while we are taking the snapshot it is important that the connection stays open otherwise Kuzzle will send the resulting snapshot chunks into the void, so to avoid the SDK from disconnecting itself because it did not receive a response from Kuzzle in a reasonable amount of time, we simply disable the timer responsible for disconnecting the SDK when Kuzzle is not responding while we are using the debug-proxy.

@Shiranuit Shiranuit merged commit 9ea4a3b into 1-dev Feb 28, 2023
@Shiranuit Shiranuit mentioned this pull request Mar 6, 2023
@rolljee rolljee deleted the enhancement/disable-ping-while-debugging branch December 14, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants