]> git.kaiwu.me - nginx.git/commitdiff
Uwsgi: added create_loc_conf comments.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 8 Oct 2024 14:24:34 +0000 (18:24 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 12 Nov 2024 13:21:22 +0000 (17:21 +0400)
src/http/modules/ngx_http_uwsgi_module.c

index 2af5a930a1c7f639ce4fa37d15eea3df590bb471..9e9682bc30db188cff34353fc8ee9dfd4cc32bdd 100644 (file)
@@ -1511,6 +1511,28 @@ ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf)
         return NULL;
     }
 
+    /*
+     * set by ngx_pcalloc():
+     *
+     *     conf->upstream.bufs.num = 0;
+     *     conf->upstream.ignore_headers = 0;
+     *     conf->upstream.next_upstream = 0;
+     *     conf->upstream.cache_zone = NULL;
+     *     conf->upstream.cache_use_stale = 0;
+     *     conf->upstream.cache_methods = 0;
+     *     conf->upstream.temp_path = NULL;
+     *     conf->upstream.hide_headers_hash = { NULL, 0 };
+     *     conf->upstream.store_lengths = NULL;
+     *     conf->upstream.store_values = NULL;
+     *
+     *     conf->uwsgi_string = { 0, NULL };
+     *     conf->ssl = 0;
+     *     conf->ssl_protocols = 0;
+     *     conf->ssl_ciphers = { 0, NULL };
+     *     conf->ssl_trusted_certificate = { 0, NULL };
+     *     conf->ssl_crl = { 0, NULL };
+     */
+
     conf->modifier1 = NGX_CONF_UNSET_UINT;
     conf->modifier2 = NGX_CONF_UNSET_UINT;