[nginx] svn commit: r4270 - trunk/src/http

ru at nginx.com ru at nginx.com
Thu Nov 10 09:13:10 UTC 2011


Author: ru
Date: 2011-11-10 09:13:09 +0000 (Thu, 10 Nov 2011)
New Revision: 4270

Log:
Changed error message to be more appropriate in the imaginary
"open_file_cache max=0" case.


Modified:
   trunk/src/http/ngx_http_core_module.c

Modified: trunk/src/http/ngx_http_core_module.c
===================================================================
--- trunk/src/http/ngx_http_core_module.c	2011-11-09 14:50:33 UTC (rev 4269)
+++ trunk/src/http/ngx_http_core_module.c	2011-11-10 09:13:09 UTC (rev 4270)
@@ -4400,7 +4400,7 @@
         if (ngx_strncmp(value[i].data, "max=", 4) == 0) {
 
             max = ngx_atoi(value[i].data + 4, value[i].len - 4);
-            if (max == NGX_ERROR) {
+            if (max <= 0) {
                 goto failed;
             }
 



More information about the nginx-devel mailing list