Increase response read timeout to 30 seconds

- Allows more time for wsssht to send HTTP responses
- Prevents premature timeout that causes connection closure
parent c44010ea
......@@ -638,7 +638,7 @@ static int handle_proxy_request(int client_fd, wssshd_state_t *state, const wsss
while (1) {
FD_ZERO(&read_fds);
FD_SET(tunnel_fd, &read_fds);
tv.tv_sec = 10; // 10 second timeout
tv.tv_sec = 30; // 30 second timeout
tv.tv_usec = 0;
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