You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2013/02/19 20:08:24 UTC
svn commit: r1447871 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Author: jim
Date: Tue Feb 19 19:08:24 2013
New Revision: 1447871
URL: http://svn.apache.org/r1447871
Log:
ensure positive
Modified:
httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Modified: httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/eventopt.c?rev=1447871&r1=1447870&r2=1447871&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/eventopt.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/eventopt.c Tue Feb 19 19:08:24 2013
@@ -3337,6 +3337,9 @@ static const char *set_worker_factor(cmd
if (*endptr)
return "error parsing value";
+ if (val <= 0)
+ return "AsyncRequestWorkerFactor argument must be a positive number";
+
worker_factor = val * WORKER_FACTOR_SCALE;
if (worker_factor == 0)
worker_factor = 1;