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

Close Telemetry Server: subset B - Stop listening to client requests #52

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

nunoguedelha
Copy link
Collaborator

@nunoguedelha nunoguedelha commented Oct 26, 2021

Implements step B of #40 .

  • Convert 'handleTermination()' into a class for a better handling of
    the multiple Promise/Resolve cycles.
    • Create class 'TerminationHandler': main method 'HandleTermination.run()' starts the
      termination.
    • Former function 'handleTermination' body now defines 'HandleTermination.runSubsetA()'.
  • Define 'WebsocketTracker.pauseAll()' which pauses all the open sockets.
  • Use it for the server closure step B.
  • Move the 'TerminationHandler' class to a dedicated script file.

- Convert 'handleTermination()' into a class for a better handling of
  the multiple Promise/Resolve cycles.
    - Create class 'TerminationHandler': main method 'HandleTermination.run()' starts the
      termination.
    - Former function 'handleTermination' body now defines 'HandleTermination.runSubsetA()'.
- Define 'WebsocketTracker.pauseAll()' which pauses all the open sockets.
- Use it for the server closure step B.
@nunoguedelha nunoguedelha self-assigned this Oct 26, 2021
@nunoguedelha nunoguedelha marked this pull request as ready for review October 26, 2021 15:41
@nunoguedelha
Copy link
Collaborator Author

@S-Dafarra @RiccardoGrieco , I'm submitting small PRs because I assumed it would be easier for you guys to review in small time slots where you would have available time. Let me know if it wasn't a good idea.

@nunoguedelha nunoguedelha mentioned this pull request Oct 27, 2021
@nunoguedelha
Copy link
Collaborator Author

@RiccardoGrieco , although @S-Dafarra already approved, I'll wait for you to take a look at the changes.

@nunoguedelha nunoguedelha merged commit 854962c into main Nov 2, 2021
@nunoguedelha nunoguedelha deleted the fix/servers-closure-3 branch November 2, 2021 12:03
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