[Opensrf-commits] r2173 - branches/rel_2_0/src/perl/lib/OpenSRF (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Feb 22 12:50:10 EST 2011


Author: dbs
Date: 2011-02-22 12:50:06 -0500 (Tue, 22 Feb 2011)
New Revision: 2173

Modified:
   branches/rel_2_0/src/perl/lib/OpenSRF/Application.pm
Log:
on second thought, removing debug sleep method, which is (more than most) a DOS waiting to happen.


Modified: branches/rel_2_0/src/perl/lib/OpenSRF/Application.pm
===================================================================
--- branches/rel_2_0/src/perl/lib/OpenSRF/Application.pm	2011-02-22 17:46:39 UTC (rev 2172)
+++ branches/rel_2_0/src/perl/lib/OpenSRF/Application.pm	2011-02-22 17:50:06 UTC (rev 2173)
@@ -743,22 +743,4 @@
 	return \@results;
 }
 
-__PACKAGE__->register_method(
-	method => 'sleep_method',
-	argc => 1,
-	api_name => 'opensrf.system.sleep',
-	signature => {
-		desc => q/Causes the backend process to sleep for the specified amount of time/,
-        params => [ {desc => q/Number of seconds to sleep;  defaults to 1/, type => 'number'} ],
-		return => { desc => q/The number of seconds slept/, type => 'number' }
-	}
-);
-
-sub sleep_method {
-	my($self, $client, $secs) = @_;
-    $secs ||= 1;
-    CORE::sleep($secs);
-    return $secs;
-}
-
 1;



More information about the opensrf-commits mailing list