Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 132) sorted by last modified time

123456

/unit/src/
H A Dnxt_http_request.c127 for (i = 0; i < host->length; i++) { in nxt_http_validate_host()
128 ch = h[i]; in nxt_http_validate_host()
142 dot_pos = i; in nxt_http_validate_host()
154 if (i == 0) { in nxt_http_validate_host()
419 i = fields->nelts; in nxt_http_request_forward_client_ip()
421 while (i-- > 0) { in nxt_http_request_forward_client_ip()
422 start = f[i]->value; in nxt_http_request_forward_client_ip()
1112 nxt_uint_t i; in nxt_http_field_hash() local
1126 for (i = 0; i < name->length; i++) { in nxt_http_field_hash()
1198 uint32_t i, hash; in nxt_http_header_hash() local
[all …]
H A Dnxt_unit.c1942 for (i = 0; i < r->fields_count; i++) { in nxt_unit_request_group_dup_fields()
2002 i++; in nxt_unit_request_group_dup_fields()
2136 for (i = 0; i < req->response->fields_count; i++) { in nxt_unit_response_realloc()
3326 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3353 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3402 uint64_t i, d; in nxt_unit_websocket_read() local
3414 for (i = 0; i < (uint64_t) res; i++) { in nxt_unit_websocket_read()
3415 b[i] ^= ws->mask[ (i + d) % 4 ]; in nxt_unit_websocket_read()
3518 for (i = 0; i < nchunks; i++) { in nxt_unit_mmap_get()
3685 cap = i + 1; in nxt_unit_mmap_at()
[all …]
H A Dnxt_status.c14 size_t i; in nxt_status_get() local
67 for (i = 0; i < report->apps_count; i++) { in nxt_status_get()
68 app = &report->apps[i]; in nxt_status_get()
78 ret = nxt_conf_set_member_dup(apps, mp, &name, app_obj, i); in nxt_status_get()
H A Dnxt_router.c121 int i);
1734 for (i = 0; i < n; i++) { in nxt_router_conf_create()
1998 for (i = 0; i < n; i++) { in nxt_router_conf_create()
2155 for (i = 0; i < exts; i++) { in nxt_router_conf_process_static()
2266 for (i = 0; i < fh->header->length; i++) { in nxt_router_conf_forward_header()
2488 for (i = 0; !nxt_strstr_eq(target, &targets[i]); i++); in nxt_router_application_init()
3284 for (i = tmcf->new_threads; i < threads; i++) { in nxt_router_threads_create()
4436 if (i < 0 && c == -i) { in nxt_router_app_use()
5147 i->field = nxt_list_data(i->part); in nxt_fields_part_first()
5172 return nxt_fields_part_first(i->part->next, i); in nxt_fields_next()
[all …]
H A Dnxt_port.h360 void nxt_port_use(nxt_task_t *task, nxt_port_t *port, int i);
H A Dnxt_controller.c1035 uint32_t i, count; in nxt_controller_process_request() local
1144 i = 0; in nxt_controller_process_request()
1152 nxt_conf_set_member(value, &certificates, certs, i++); in nxt_controller_process_request()
1155 nxt_conf_set_member(value, &config, nxt_controller_conf.root, i++); in nxt_controller_process_request()
1156 nxt_conf_set_member(value, &status, nxt_controller_status, i); in nxt_controller_process_request()
H A Dnxt_conf.c581 nxt_uint_t i; in nxt_conf_map_object() local
588 int i; in nxt_conf_map_object() member
598 for (i = 0; i < n; i++) { in nxt_conf_map_object()
606 ptr = nxt_pointer_to(data, map[i].offset); in nxt_conf_map_object()
608 switch (map[i].type) { in nxt_conf_map_object()
631 switch (map[i].type) { in nxt_conf_map_object()
642 ptr->i = num; in nxt_conf_map_object()
683 switch (map[i].type) { in nxt_conf_map_object()
1824 nxt_uint_t i; in nxt_conf_json_parse_string() local
2020 for (i = 0; i < 4; i++) { in nxt_conf_json_parse_string()
[all …]
H A Dnxt_main_process.c733 nxt_uint_t i; in nxt_main_process_title() local
741 for (i = 1; nxt_process_argv[i] != NULL; i++) { in nxt_main_process_title()
742 p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]); in nxt_main_process_title()
H A Dnxt_sockaddr.c439 nxt_uint_t i, zero_start, last_zero_start; in nxt_inet6_ntop() local
453 for (i = 0; i < 16; i += 2) { in nxt_inet6_ntop()
455 if (addr[i] == 0 && addr[i + 1] == 0) { in nxt_inet6_ntop()
458 last_zero_start = i; in nxt_inet6_ntop()
496 for (i = 0; i < ipv6_bytes; i += 2) { in nxt_inet6_ntop()
498 if (i == zero_start) { in nxt_inet6_ntop()
500 i += (zero_groups - 1) * 2; in nxt_inet6_ntop()
505 p = nxt_sprintf(p, end, "%uxd", (addr[i] << 8) + addr[i + 1]); in nxt_inet6_ntop()
507 if (i < 14) { in nxt_inet6_ntop()
H A Dnxt_conf_validation.c1510 nxt_uint_t i; in nxt_conf_vldt_action() local
1527 for (i = 0; i < nxt_nitems(actions); i++) { in nxt_conf_vldt_action()
1528 action = nxt_conf_get_object_member(value, &actions[i].name, NULL); in nxt_conf_vldt_action()
1540 members = actions[i].members; in nxt_conf_vldt_action()
1963 nxt_uint_t i, first, last; in nxt_conf_vldt_match_pattern() local
2009 for (i = first; i < last; i++) { in nxt_conf_vldt_match_pattern()
2010 if (pattern.start[i] == '*' && pattern.start[i + 1] == '*') { in nxt_conf_vldt_match_pattern()
H A Dnxt_runtime.c715 nxt_uint_t i, n; in nxt_runtime_thread_pool_exit() local
734 for (i = 0; i < n; i++) { in nxt_runtime_thread_pool_exit()
736 if (tp == thread_pools[i]) { in nxt_runtime_thread_pool_exit()
737 nxt_array_remove(rt->thread_pools, &thread_pools[i]); in nxt_runtime_thread_pool_exit()
1317 nxt_uint_t i, n; in nxt_runtime_listen_sockets_enable() local
1323 for (i = 0; i < n; i++) { in nxt_runtime_listen_sockets_enable()
1324 if (ls[i].flags == NXT_NONBLOCK) { in nxt_runtime_listen_sockets_enable()
1325 if (nxt_listen_event(task, &ls[i]) == NULL) { in nxt_runtime_listen_sockets_enable()
H A Dnxt_process.h187 void nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i);
192 void nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i);
H A Dnxt_process.c121 nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i) in nxt_process_use() argument
123 process->use_count += i; in nxt_process_use()
H A Dnxt_application.c215 nxt_uint_t i, n, j; in nxt_discovery_modules() local
242 for (i = 0; i < n; i++) { in nxt_discovery_modules()
243 name = glb.gl_pathv[i]; in nxt_discovery_modules()
255 for (i = 0; i < n; i++) { in nxt_discovery_modules()
257 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
294 for (i = 0; i < n; i++) { in nxt_discovery_modules()
299 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
390 for (i = 0; i < n; i++) { in nxt_discovery_module()
976 nxt_uint_t i, n; in nxt_app_lang_module() local
1006 for (i = 0; i < n; i++) { in nxt_app_lang_module()
[all …]
H A Dnxt_isolation.c269 nxt_uint_t i; in nxt_isolation_credential_map() local
303 for (i = 0; i < map->size; i++) { in nxt_isolation_credential_map()
559 size_t i, n, rootfs_len, len; in nxt_isolation_set_lang_mounts() local
580 for (i = 0; i < n; i++) { in nxt_isolation_set_lang_mounts()
581 len = nxt_strlen(lang_mnt[i].dst); in nxt_isolation_set_lang_mounts()
701 size_t i, n; in nxt_isolation_prepare_rootfs() local
715 for (i = 0; i < n; i++) { in nxt_isolation_prepare_rootfs()
716 dst = mnt[i].dst; in nxt_isolation_prepare_rootfs()
745 n = i + 1; in nxt_isolation_prepare_rootfs()
747 for (i = 0; i < n; i++) { in nxt_isolation_prepare_rootfs()
[all …]
/unit/pkg/rpm/
H A DMakefile178 i=100 ; \
181 s="`printf "Source%d: %s\n" $${i} $${src}`" ; \
183 i=$$(($${i}+1)) ; \
/unit/test/
H A Dtest_tls.py397 for i in range(chain_length):
398 if i == 0:
400 elif i == chain_length - 1:
403 self.req('int{}'.format(i))
405 for i in range(chain_length - 1):
406 if i == 0:
408 elif i == chain_length - 2:
411 self.ca(cert='int{}'.format(i), out='int{}'.format(i + 1))
413 for i in range(chain_length - 1, 0, -1):
415 '/end.crt' if i == chain_length - 1 else '/int{}.crt'.format(i)
H A Dtest_python_application.py184 for i in range(conns):
197 self.load('mirror', processes=i + 1)
201 for i in range(conns):
208 sock=socks[i],
215 self.load('mirror', processes=i + 1)
217 for i in range(conns):
218 resp = self.post(sock=socks[i], body=body)
222 self.load('mirror', processes=i + 1)
767 for i in range(4):
H A Dtest_proxy.py187 for i in range(10):
189 body=payload + str(i),
196 for i in range(10):
197 resp = self.recvall(socks[i], buff_size=buff_size).decode()
198 socks[i].close()
203 assert resp['body'] == payload + str(i), 'body'
H A Dtest_ruby_application.py390 for i in range(4):
H A Dtest_configuration.py255 for i in range(10):
H A Dtest_asgi_application.py199 for i in range(conns):
212 self.load('mirror', processes=i + 1)
216 for i in range(conns):
223 sock=socks[i],
230 self.load('mirror', processes=i + 1)
232 for i in range(conns):
233 resp = self.post(sock=socks[i], body=body)
237 self.load('mirror', processes=i + 1)
360 for i in range(2):
H A Dconftest.py182 for i in range(50):
559 for i in range(600):
601 for i in range(600):
/unit/src/ruby/
H A Dnxt_ruby.c733 uint32_t i; in nxt_ruby_read_request() local
760 for (i = 0; i < r->fields_count; i++) { in nxt_ruby_read_request()
1184 int i; in nxt_ruby_exception_log() local
1210 for (i = 1; i < RARRAY_LEN(ary); i++) { in nxt_ruby_exception_log()
1269 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_ready_handler()
1366 uint32_t i; in nxt_ruby_init_threads() local
1381 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1390 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1409 uint32_t i; in nxt_ruby_join_threads() local
1416 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_join_threads()
[all …]
/unit/src/python/
H A Dnxt_python_asgi.c143 nxt_int_t i; in nxt_python_asgi_init() local
168 for (i = 0; i < nxt_py_targets->count; i++) { in nxt_python_asgi_init()
268 for (i = 0; i < nxt_nitems(handlers); i++) { in nxt_python_asgi_ctx_data_alloc()
694 for (i = 0; i < r->fields_count; i++) { in nxt_py_asgi_create_http_scope()
877 for (i = 0; i < f->value_length; i++) { in nxt_py_asgi_create_subprotocols()
891 for (i = 0; i < f->value_length; ) { in nxt_py_asgi_create_subprotocols()
893 i++; in nxt_py_asgi_create_subprotocols()
910 i++; in nxt_py_asgi_create_subprotocols()
911 } while (i < f->value_length && v[i] == ' '); in nxt_py_asgi_create_subprotocols()
1157 int i; in nxt_py_asgi_enum_headers() local
[all …]

123456