Home
last modified time | relevance | path

Searched refs:shpool (Results 1 – 14 of 14) sorted by relevance

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_zone_module.c18 ngx_slab_pool_t *shpool, ngx_stream_upstream_srv_conf_t *uscf);
122 ngx_slab_pool_t *shpool; in ngx_stream_upstream_init_zone() local
127 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr; in ngx_stream_upstream_init_zone()
132 peers = shpool->data; in ngx_stream_upstream_init_zone()
150 shpool->log_ctx = ngx_slab_alloc(shpool, len); in ngx_stream_upstream_init_zone()
151 if (shpool->log_ctx == NULL) { in ngx_stream_upstream_init_zone()
198 name = ngx_slab_alloc(shpool, sizeof(ngx_str_t)); in ngx_stream_upstream_zone_copy_peers()
203 name->data = ngx_slab_alloc(shpool, peers->name->len); in ngx_stream_upstream_zone_copy_peers()
213 peers->shpool = shpool; in ngx_stream_upstream_zone_copy_peers()
238 backup->shpool = shpool; in ngx_stream_upstream_zone_copy_peers()
[all …]
H A Dngx_stream_limit_conn_module.c166 ngx_shmtx_lock(&shpool->mutex); in ngx_stream_limit_conn_handler()
215 ngx_shmtx_unlock(&shpool->mutex); in ngx_stream_limit_conn_handler()
320 ngx_slab_pool_t *shpool; in ngx_stream_limit_conn_cleanup() local
330 ngx_shmtx_lock(&shpool->mutex); in ngx_stream_limit_conn_cleanup()
339 ngx_slab_free_locked(shpool, node); in ngx_stream_limit_conn_cleanup()
342 ngx_shmtx_unlock(&shpool->mutex); in ngx_stream_limit_conn_cleanup()
368 ngx_slab_pool_t *shpool; in ngx_stream_limit_conn_init_zone() local
396 ctx->rbtree = shpool->data; in ngx_stream_limit_conn_init_zone()
406 shpool->data = ctx->rbtree; in ngx_stream_limit_conn_init_zone()
418 shpool->log_ctx = ngx_slab_alloc(shpool, len); in ngx_stream_limit_conn_init_zone()
[all …]
H A Dngx_stream_upstream_round_robin.h63 ngx_slab_pool_t *shpool; member
85 if (peers->shpool) { \
91 if (peers->shpool) { \
97 if (peers->shpool) { \
104 if (peers->shpool) { \
110 if (peers->shpool) { \
H A Dngx_stream_upstream_round_robin.c717 if (peers->shpool) { in ngx_stream_upstream_set_round_robin_peer_session()
777 if (peers->shpool) { in ngx_stream_upstream_save_round_robin_peer_session()
805 ngx_shmtx_lock(&peers->shpool->mutex); in ngx_stream_upstream_save_round_robin_peer_session()
808 ngx_slab_free_locked(peers->shpool, peer->ssl_session); in ngx_stream_upstream_save_round_robin_peer_session()
811 peer->ssl_session = ngx_slab_alloc_locked(peers->shpool, len); in ngx_stream_upstream_save_round_robin_peer_session()
813 ngx_shmtx_unlock(&peers->shpool->mutex); in ngx_stream_upstream_save_round_robin_peer_session()
H A Dngx_stream_upstream_random_module.c189 if (rp->rrp.peers->shpool && rcf->ranges == NULL) { in ngx_stream_upstream_init_random_peer()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_zone_module.c18 ngx_slab_pool_t *shpool, ngx_http_upstream_srv_conf_t *uscf);
125 ngx_slab_pool_t *shpool; in ngx_http_upstream_init_zone() local
130 shpool = (ngx_slab_pool_t *) shm_zone->shm.addr; in ngx_http_upstream_init_zone()
135 peers = shpool->data; in ngx_http_upstream_init_zone()
153 shpool->log_ctx = ngx_slab_alloc(shpool, len); in ngx_http_upstream_init_zone()
154 if (shpool->log_ctx == NULL) { in ngx_http_upstream_init_zone()
187 ngx_http_upstream_zone_copy_peers(ngx_slab_pool_t *shpool, in ngx_http_upstream_zone_copy_peers() argument
201 name = ngx_slab_alloc(shpool, sizeof(ngx_str_t)); in ngx_http_upstream_zone_copy_peers()
216 peers->shpool = shpool; in ngx_http_upstream_zone_copy_peers()
241 backup->shpool = shpool; in ngx_http_upstream_zone_copy_peers()
[all …]
H A Dngx_http_limit_conn_module.c147 ngx_slab_pool_t *shpool; in ngx_http_limit_conn_handler() local
188 ngx_shmtx_lock(&shpool->mutex); in ngx_http_limit_conn_handler()
237 ngx_shmtx_unlock(&shpool->mutex); in ngx_http_limit_conn_handler()
341 ngx_slab_pool_t *shpool; in ngx_http_limit_conn_cleanup() local
351 ngx_shmtx_lock(&shpool->mutex); in ngx_http_limit_conn_cleanup()
363 ngx_shmtx_unlock(&shpool->mutex); in ngx_http_limit_conn_cleanup()
389 ngx_slab_pool_t *shpool; in ngx_http_limit_conn_init_zone() local
417 ctx->rbtree = shpool->data; in ngx_http_limit_conn_init_zone()
427 shpool->data = ctx->rbtree; in ngx_http_limit_conn_init_zone()
439 shpool->log_ctx = ngx_slab_alloc(shpool, len); in ngx_http_limit_conn_init_zone()
[all …]
H A Dngx_http_limit_req_module.c35 ngx_slab_pool_t *shpool; member
207 ngx_shmtx_lock(&ctx->shpool->mutex); in ngx_http_limit_req_handler()
212 ngx_shmtx_unlock(&ctx->shpool->mutex); in ngx_http_limit_req_handler()
518 ngx_shmtx_lock(&ctx->shpool->mutex); in ngx_http_limit_req_account()
543 ngx_shmtx_unlock(&ctx->shpool->mutex); in ngx_http_limit_req_account()
655 ctx->shpool = octx->shpool; in ngx_http_limit_req_init_zone()
663 ctx->sh = ctx->shpool->data; in ngx_http_limit_req_init_zone()
673 ctx->shpool->data = ctx->sh; in ngx_http_limit_req_init_zone()
682 ctx->shpool->log_ctx = ngx_slab_alloc(ctx->shpool, len); in ngx_http_limit_req_init_zone()
683 if (ctx->shpool->log_ctx == NULL) { in ngx_http_limit_req_init_zone()
[all …]
H A Dngx_http_upstream_random_module.c189 if (rp->rrp.peers->shpool && rcf->ranges == NULL) { in ngx_http_upstream_init_random_peer()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_upstream_round_robin.h65 ngx_slab_pool_t *shpool; member
87 if (peers->shpool) { \
93 if (peers->shpool) { \
99 if (peers->shpool) { \
106 if (peers->shpool) { \
112 if (peers->shpool) { \
H A Dngx_http_file_cache.c115 cache->shpool = ocache->shpool; in ngx_http_file_cache_init()
130 cache->sh = cache->shpool->data; in ngx_http_file_cache_init()
142 cache->shpool->data = cache->sh; in ngx_http_file_cache_init()
161 cache->shpool->log_ctx = ngx_slab_alloc(cache->shpool, len); in ngx_http_file_cache_init()
162 if (cache->shpool->log_ctx == NULL) { in ngx_http_file_cache_init()
169 cache->shpool->log_nomem = 0; in ngx_http_file_cache_init()
416 ngx_shmtx_lock(&cache->shpool->mutex); in ngx_http_file_cache_lock()
502 ngx_shmtx_lock(&cache->shpool->mutex); in ngx_http_file_cache_lock_wait()
825 ngx_shmtx_lock(&cache->shpool->mutex); in ngx_http_file_cache_exists()
1224 ngx_shmtx_lock(&cache->shpool->mutex); in ngx_http_file_cache_reopen()
[all …]
H A Dngx_http_upstream_round_robin.c685 if (peers->shpool) { in ngx_http_upstream_set_round_robin_peer_session()
745 if (peers->shpool) { in ngx_http_upstream_save_round_robin_peer_session()
773 ngx_shmtx_lock(&peers->shpool->mutex); in ngx_http_upstream_save_round_robin_peer_session()
776 ngx_slab_free_locked(peers->shpool, peer->ssl_session); in ngx_http_upstream_save_round_robin_peer_session()
779 peer->ssl_session = ngx_slab_alloc_locked(peers->shpool, len); in ngx_http_upstream_save_round_robin_peer_session()
781 ngx_shmtx_unlock(&peers->shpool->mutex); in ngx_http_upstream_save_round_robin_peer_session()
H A Dngx_http_cache.h159 ngx_slab_pool_t *shpool; member
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_openssl.c67 ngx_slab_pool_t *shpool, ngx_uint_t n);
3236 ngx_slab_pool_t *shpool; in ngx_ssl_session_cache_init() local
3256 shpool->data = cache; in ngx_ssl_session_cache_init()
3266 shpool->log_ctx = ngx_slab_alloc(shpool, len); in ngx_ssl_session_cache_init()
3267 if (shpool->log_ctx == NULL) { in ngx_ssl_session_cache_init()
3274 shpool->log_nomem = 0; in ngx_ssl_session_cache_init()
3307 ngx_slab_pool_t *shpool; in ngx_ssl_new_session() local
3331 ngx_shmtx_lock(&shpool->mutex); in ngx_ssl_new_session()
3423 ngx_shmtx_unlock(&shpool->mutex); in ngx_ssl_new_session()
3486 ngx_shmtx_lock(&shpool->mutex); in ngx_ssl_get_cached_session()
[all …]