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

Implemented the Keep Alive RESTful configuration #47

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

Nathanrs97
Copy link
Contributor

The RESTful websocket closing after a response is now configurable through the keep_alive configuration in config.xml.

closes #45

…onfiguration section of `config.xml`) and into the server as a whole.

A small refactor had to be done to implement this. The RESTful callable function that serves the request now returns the response it wishes to respond back to the client with (as apposed to the previous request object having a dedicated respond function). This was done because the RESTful needs to check the _config["keep_alive"] parameter after the websocket send to know to close the websocket or not (which isn't possible in the `RestfulRequest` class instance).
@Nathanrs97 Nathanrs97 self-assigned this Mar 8, 2021
@Nathanrs97 Nathanrs97 merged commit b4a15b8 into main Mar 8, 2021
@Nathanrs97 Nathanrs97 deleted the issue-45-keep-alive branch March 8, 2021 19:44
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.

Implement a Configuration to Prevent the Server Closing the Connection after a RESTful Request
1 participant