Closed neon-mmd closed 3 months ago
To reduce notifications, issues are locked until they are https://github.com/neon-mmd/websurfx/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/neon-mmd/websurfx/blob/rolling/CONTRIBUTING.md
The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/neon-mmd/websurfx/blob/rolling/CONTRIBUTING.md
I was thinking of changing the key name to client_connection_keep_alive to help differentiate between the keep alive timers for the server's client to the upstream search engines versus the client's connection to the HTTP server, and also modifying the description of the keys in the config.lua file.
Work Expected From The Issue
Provide a new config option to allow users to configure the amount of time for which the server should keep the connection with client alive.
The issue expects the following files to be changed/modified:
src/lib.rs
src/config/parser.rs
websurfx/config.lua
Reason Behind These Changes
The reason behind having these changes is to keep the server client connection alive for a certain period of time so that any subsequent requests sent to the server from the client during that period does not require re-estabilishing the connection which can take time to do so. Thus increasing the time between the client request and server response.
Sample Code
The sample codes for the files from the above mentioned files has been provided below:
lib.rs
config.lua
parser.rs