]> git.kaiwu.me - nginx.git/commitdiff
Removed the deprecated "connections" directive.
authorRuslan Ermilov <ru@nginx.com>
Wed, 29 Apr 2015 10:52:37 +0000 (13:52 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 29 Apr 2015 10:52:37 +0000 (13:52 +0300)
src/event/ngx_event.c

index 5ca6e826af966a158051026ec87a8c900df634cf..4610acb00cba775e390710e1d74b86f9207370bc 100644 (file)
@@ -126,13 +126,6 @@ static ngx_command_t  ngx_event_core_commands[] = {
       0,
       NULL },
 
-    { ngx_string("connections"),
-      NGX_EVENT_CONF|NGX_CONF_TAKE1,
-      ngx_event_connections,
-      0,
-      0,
-      NULL },
-
     { ngx_string("use"),
       NGX_EVENT_CONF|NGX_CONF_TAKE1,
       ngx_event_use,
@@ -956,12 +949,6 @@ ngx_event_connections(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         return "is duplicate";
     }
 
-    if (ngx_strcmp(cmd->name.data, "connections") == 0) {
-        ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
-                           "the \"connections\" directive is deprecated, "
-                           "use the \"worker_connections\" directive instead");
-    }
-
     value = cf->args->elts;
     ecf->connections = ngx_atoi(value[1].data, value[1].len);
     if (ecf->connections == (ngx_uint_t) NGX_ERROR) {