projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c4782
)
increase gearman timeout to 15s
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 6 May 2011 09:56:51 +0000
(11:56 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 6 May 2011 09:56:51 +0000
(11:56 +0200)
web_ui.pl
patch
|
blob
|
history
diff --git
a/web_ui.pl
b/web_ui.pl
index
22d4455
..
6b9258b
100755
(executable)
--- a/
web_ui.pl
+++ b/
web_ui.pl
@@
-29,6
+29,7
@@
get '/ping_http' => sub {
my $gearman = MojoX::Gearman->new; #( ioloop => Mojo::IOLoop->singleton );
$gearman->server( $ENV{GEARMAN} || 'localhost:4730' );
+$gearman->timeout( 15 );
get '/ping_g' => sub {
my $self = shift;
@@
-93,6
+94,7
@@
get '/gnuplot' => sub {
$sql =~ s/\s+(from|where|order|limit|join)/\n$1/gs;
$self->param( sql => $sql );
+ $gearman->timeout(15);
my $ret = $gearman->req( 'SUBMIT_JOB', 'Store_sql', '', $sql );
die "no result for $sql" unless $ret;