Update of /cvsroot/sandweb/sandweb/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv10310/bin
Modified Files:
sandweb.cgi
Log Message:
made timeout a global option, now you can easily set a number of
seconds in the sandweb.cfg and CLI ops will time out at that time
( prevents runaway CVS/SSH processes and such ).
Default is 300 seconds ( 5 minutes ).
Index: sandweb.cgi
===================================================================
RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v
retrieving revision 1.346
retrieving revision 1.347
diff -U2 -r1.346 -r1.347
--- sandweb.cgi 5 Mar 2003 08:31:02 -0000 1.346
+++ sandweb.cgi 1 Apr 2003 02:46:25 -0000 1.347
@@ -848,4 +848,5 @@
my $repo_connection = $user->get_repo_connection(repo => $repo_name);
my $repo_root = $user->get_repo_root(repo => $repo_name);
+ my $system_timeout = $config->{'system'}->{'timeout'};
my $ssh_bin = $config->{'system'}->{'ssh_bin'};
my $cvs_bin = $config->{'system'}->{'cvs_bin'};
@@ -862,4 +863,5 @@
'system_username' => $system_username,
'system_password' => $system_password,
+ 'system_timeout' => $system_timeout,
'server' => $repo_server,
'repo_type' => $repo_type,
@@ -2586,4 +2588,5 @@
my $repo_connection = $user->get_repo_connection(repo => $repo_name);
my $repo_root = $user->get_repo_root(repo => $repo_name);
+ my $system_timeout = $config->{'system'}->{'timeout'} || '';
my $ssh_bin = $config->{'system'}->{'ssh_bin'};
my $cvs_bin = $config->{'system'}->{'cvs_bin'};
@@ -2625,4 +2628,5 @@
'system_username' => $system_username,
'system_password' => $system_password,
+ 'system_timeout' => $system_timeout,
server => $repo_server,
repo_type => $repo_type,
|