aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_referer_module.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-08-01 19:12:10 +0300
committerRuslan Ermilov <ru@nginx.com>2017-08-01 19:12:10 +0300
commitd846f27638525f478ea07f5574b5569ce2ab1ac2 (patch)
tree66119059c9f70eca26859e42dab62d25aafcf607 /src/http/modules/ngx_http_referer_module.c
parentb992f7259ba4763178f9d394b320bcc5de88818b (diff)
downloadnginx-d846f27638525f478ea07f5574b5569ce2ab1ac2.tar.gz
nginx-d846f27638525f478ea07f5574b5569ce2ab1ac2.zip
Upstream zone: store peers->name and its data in shared memory.
The shared objects should generally be allocated from shared memory. While peers->name and the data it points to allocated from cf->pool happened to work on UNIX, it broke on Windows. On UNIX this worked only because the shared memory zone for upstreams is re-created for every new configuration. But on Windows, a worker process does not inherit the address space of the master process, so the peers->name pointed to data allocated from cf->pool by the master process, and was invalid.
Diffstat (limited to 'src/http/modules/ngx_http_referer_module.c')
0 files changed, 0 insertions, 0 deletions