mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add an option to configure RPC timeout
This commit is contained in:
8
lang/en
8
lang/en
@@ -475,6 +475,14 @@ time_in_mins=In $1 minutes
|
||||
time_in_sec=In $1 second
|
||||
time_in_secs=In $1 seconds
|
||||
time_now=Just now
|
||||
time_second=second
|
||||
time_seconds=seconds
|
||||
time_minute=minute
|
||||
time_minutes=minutes
|
||||
time_hour=hour
|
||||
time_hours=hours
|
||||
time_day=day
|
||||
time_days=days
|
||||
|
||||
defcert_error=Default $1 bundled SSL certificate is being used. It is highly advised to update default <tt>$2</tt> certificate before proceeding with login.
|
||||
|
||||
|
||||
@@ -180,6 +180,12 @@ $in{'passreset_timeout'} =~ /^\d+$/ && $in{'passreset_timeout'} > 0 ||
|
||||
&error($text{'session_epassreset_timeout'});
|
||||
$gconfig{'passreset_timeout'} = $in{'passreset_timeout'};
|
||||
|
||||
# RPC timeout
|
||||
my $rpc_timeout = $in{'rpc_timeout'};
|
||||
$rpc_timeout =~ /^\d+$/ && $rpc_timeout > 0 ||
|
||||
&error($text{'session_erpc_timeout'});
|
||||
$gconfig{'rpc_timeout'} = $rpc_timeout;
|
||||
|
||||
&write_file("$config_directory/config", \%gconfig);
|
||||
&unlock_file("$config_directory/config");
|
||||
|
||||
|
||||
@@ -174,6 +174,11 @@ print &ui_table_row($text{'session_md5'},
|
||||
[ 2, $text{'session_sha512'}."<br>" ],
|
||||
[ 3, $text{'session_yescrypt'} ] ]));
|
||||
|
||||
# RPC timeout
|
||||
print &ui_table_row(&hlink($text{'session_rpc_timeout'}, 'rpc_timeout'),
|
||||
&ui_textbox("rpc_timeout", $gconfig{'rpc_timeout'} || 60, 3).
|
||||
" ".$text{'time_seconds'});
|
||||
|
||||
print ui_table_end();
|
||||
print ui_form_end([ [ "save", $text{'save'} ] ]);
|
||||
|
||||
|
||||
6
webmin/help/rpc_timeout.html
Normal file
6
webmin/help/rpc_timeout.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<header>RPC session timeout</header>
|
||||
|
||||
Sets how many seconds Webmin keeps an RPC session open while it is waiting with
|
||||
no activity.
|
||||
|
||||
<footer>
|
||||
@@ -664,6 +664,8 @@ session_pmode0=Always deny users with expired passwords
|
||||
session_pmode1=Always allow users with expired passwords
|
||||
session_pmode2=Prompt users with expired passwords to enter a new one
|
||||
session_md5=Webmin password hashing format
|
||||
session_rpc_timeout=RPC session timeout
|
||||
session_erpc_timeout=RPC session timeout is missing or must be a number greater than 0
|
||||
session_md5off=Determine automatically
|
||||
session_md5on=Use <tt>MD5</tt> hashing format
|
||||
session_sha512=Use <tt>SHA512</tt> hashing format
|
||||
|
||||
Reference in New Issue
Block a user