From: erickson Date: Tue, 21 Jun 2005 14:43:08 +0000 (+0000) Subject: removed connect since math_bench runs in stateless mode X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=97af68b1620b23a461e4af55f7beb14cee244d0b;p=Evergreen.git removed connect since math_bench runs in stateless mode git-svn-id: svn://svn.open-ils.org/ILS/trunk@893 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/examples/math_bench.pl b/OpenSRF/examples/math_bench.pl index ac9f55b592..18cd68d900 100755 --- a/OpenSRF/examples/math_bench.pl +++ b/OpenSRF/examples/math_bench.pl @@ -29,15 +29,6 @@ warn "PID: $$\n"; OpenSRF::System->bootstrap_client(); my $session = OpenSRF::AppSession->create( "opensrf.math" ); -try { - if( ! ($session->connect()) ) { die "Connect timed out\n"; } - -} catch OpenSRF::EX with { - my $e = shift; - warn "Connection Failed *\n"; - die $e; -} - my @times; my %vals = ( add => 3, sub => -1, mult => 2, div => 0.5 ); @@ -58,6 +49,7 @@ for my $scale ( 1..$count ) { try { $starttime = time(); + if( ! ($session->connect()) ) { die "Connect timed out\n"; } $req = $session->request( $mname, 1, 2 ); $resp = $req->recv( timeout => 10 ); push @times, time() - $starttime; @@ -87,7 +79,7 @@ for my $scale ( 1..$count ) { } else { print "*NADA*"; } $req->finish(); - $session->disconnect(); +# $session->disconnect(); $c++; }