From: miker Date: Wed, 2 Mar 2005 22:51:11 +0000 (+0000) Subject: allow max_requests to be infinite on the server side X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c83ad50cd99fbee8d292a3c10d35b5450948cb2d;p=opensrf%2Fbjwebb.git allow max_requests to be infinite on the server side git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@158 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/AppSession.pm b/src/perlmods/OpenSRF/AppSession.pm index cf58528..99b26fe 100644 --- a/src/perlmods/OpenSRF/AppSession.pm +++ b/src/perlmods/OpenSRF/AppSession.pm @@ -153,6 +153,7 @@ sub service { return shift()->{service}; } sub continue_request { my $self = shift; $self->{'requests'}++; + return 1 if (!$self->{'max_requests'}); return $self->{'requests'} <= $self->{'max_requests'} ? 1 : 0; }