increase proxy session timeout to make BB proxying work

This commit is contained in:
Martin Michelsen
2022-05-22 01:31:27 -07:00
parent 22b69276dd
commit 8f6ec2bed6
3 changed files with 27 additions and 3 deletions
+6
View File
@@ -146,6 +146,8 @@ Proxy commands (these will only work when exactly one client is connected):\n\
responds as if the function was called (with the given return value), but\n\
does not send the code to the client. To stop blocking function calls, omit\n\
the return value.\n\
close-idle-sessions\n\
Closes all sessions that don\'t have a client and server connected.\n\
");
@@ -385,6 +387,10 @@ Proxy commands (these will only work when exactly one client is connected):\n\
session->function_call_return_value = stoul(command_args);
}
} else if (command_name == "close-idle-sessions") {
size_t count = this->state->proxy_server->delete_disconnected_sessions();
fprintf(stderr, "%zu sessions closed\n", count);
} else {
throw invalid_argument("unknown command; try \'help\'");
}