Increase response timeout to 60 seconds

- Provides more time for login POST requests and complex operations
- Helps prevent timeouts that break authentication flows
parent 18481fe7
...@@ -638,7 +638,7 @@ static int handle_proxy_request(int client_fd, wssshd_state_t *state, const wsss ...@@ -638,7 +638,7 @@ static int handle_proxy_request(int client_fd, wssshd_state_t *state, const wsss
while (1) { while (1) {
FD_ZERO(&read_fds); FD_ZERO(&read_fds);
FD_SET(tunnel_fd, &read_fds); FD_SET(tunnel_fd, &read_fds);
tv.tv_sec = 30; // 30 second timeout tv.tv_sec = 60; // 60 second timeout
tv.tv_usec = 0; tv.tv_usec = 0;
int activity = select(tunnel_fd + 1, &read_fds, NULL, NULL, &tv); int activity = select(tunnel_fd + 1, &read_fds, NULL, NULL, &tv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment