Home
last modified time | relevance | path

Searched refs:ngx_min (Results 1 – 16 of 16) sorted by relevance

/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_core.h102 #define ngx_min(val1, val2) ((val1 > val2) ? (val2) : (val1)) macro
H A Dngx_string.c253 len = ngx_min(((size_t) (last - buf)), v->len); in ngx_vslprintf()
262 len = ngx_min(((size_t) (last - buf)), vv->len); in ngx_vslprintf()
277 len = ngx_min(((size_t) (last - buf)), slen); in ngx_vslprintf()
H A Dngx_resolver.c1462 timer = ngx_min(timer, atimer); in ngx_resolver_resend_handler()
1469 timer = ngx_min(timer, stimer); in ngx_resolver_resend_handler()
1478 timer = ngx_min(timer, a6timer); in ngx_resolver_resend_handler()
2159 rn->ttl = ngx_min(rn->ttl, (uint32_t) ttl); in ngx_resolver_process_a()
2701 rn->ttl = ngx_min(rn->ttl, (uint32_t) ttl); in ngx_resolver_process_srv()
3011 ctx->valid = ngx_min(ctx->valid, cctx->valid); in ngx_resolver_srv_names_handler()
H A Dngx_output_chain.c533 size = ngx_min(size, dst->end - dst->pos); in ngx_output_chain_copy_buf()
H A Dnginx.c1379 for (i = 0; i < (ngx_uint_t) ngx_min(ngx_ncpu, CPU_SETSIZE); i++) { in ngx_set_cpu_affinity()
H A Dngx_connection.c1382 n = ngx_max(ngx_min(32, cycle->reusable_connections_n / 8), 1);
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_errno.c39 size = ngx_min(size, msg->len); in ngx_strerror()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_sub_filter_module.c718 ctx->saved.len = ctx->looked.len + ngx_min(start, 0); in ngx_http_sub_parse()
726 len = ngx_min(next, 0); in ngx_http_sub_parse()
958 min = ngx_min(min, match[i].match.len); in ngx_http_sub_init_tables()
968 min = ngx_min(min, 255); in ngx_http_sub_init_tables()
977 tables->shift[c] = ngx_min(tables->shift[c], (u_char) j); in ngx_http_sub_init_tables()
H A Dngx_http_slice_filter_module.c164 end = ngx_min(cr.start + (off_t) slcf->size, cr.complete_length); in ngx_http_slice_header_filter()
H A Dngx_http_grpc_module.c1017 n = ngx_min(b->last - b->pos, 256); in ngx_http_grpc_create_request()
1266 file_pos += ngx_min(NGX_HTTP_V2_DEFAULT_FRAME_SIZE, limit); in ngx_http_grpc_body_output_filter()
1278 pos += ngx_min(NGX_HTTP_V2_DEFAULT_FRAME_SIZE, limit); in ngx_http_grpc_body_output_filter()
1479 n = ngx_min(b->last - b->pos, 256); in ngx_http_grpc_process_header()
2994 size = ngx_min(last - p, (ssize_t) ctx->field_rest); in ngx_http_grpc_parse_fragment()
3103 size = ngx_min(last - p, (ssize_t) ctx->field_rest); in ngx_http_grpc_parse_fragment()
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_ssl_preread_module.c243 n = ngx_min((size_t) (last - pos), size); in ngx_stream_ssl_preread_parse_record()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_udp.c455 n = ngx_min(b->last - b->pos, (ssize_t) size); in ngx_udp_shared_recv()
H A Dngx_event_openssl_stapling.c751 staple->refresh = ngx_max(ngx_min(valid - 300, now + 3600), now + 300); in ngx_ssl_stapling_ocsp_handler()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_request_body.c681 size = (size_t) ngx_min(r->headers_in.content_length_n, in ngx_http_read_discarded_request_body()
H A Dngx_http.c951 ngx_min(first->name.len, second->name.len) + 1); in ngx_http_cmp_locations()
/f-stack/app/nginx-1.16.1/src/http/v2/
H A Dngx_http_v2.c1742 skip = ngx_min(h2c->state.padding, (end - pos) - len); in ngx_http_v2_handle_continuation()
2090 h2c->concurrent_pushes = ngx_min(value, h2scf->concurrent_pushes); in ngx_http_v2_state_settings_params()