Home
last modified time | relevance | path

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

/unit/src/java/
H A Dnxt_jni_InputStream.c166 size_t rest, b_size; in nxt_java_InputStream_skip() local
172 rest = n; in nxt_java_InputStream_skip()
178 b_size = rest < b_size ? rest : b_size; in nxt_java_InputStream_skip()
181 rest -= b_size; in nxt_java_InputStream_skip()
183 if (rest == 0) { in nxt_java_InputStream_skip()
/unit/src/
H A Dnxt_http_source.c30 nxt_http_source_t *hs, nxt_buf_t *rest);
429 nxt_buf_t *rest) in nxt_http_source_header_ready() argument
464 if (nxt_buf_mem_used_size(&rest->mem) != 0) { in nxt_http_source_header_ready()
465 hs->rest = nxt_http_chunk_parse(task, &hsc->parse, rest); in nxt_http_source_header_ready()
467 if (nxt_slow_path(hs->rest == NULL)) { in nxt_http_source_header_ready()
479 if (nxt_buf_mem_used_size(&rest->mem) != 0) { in nxt_http_source_header_ready()
480 hs->rest = rest; in nxt_http_source_header_ready()
573 nxt_buf_chain_add(&hs->rest, in); in nxt_http_source_body_filter()
H A Dnxt_http_source.h31 nxt_buf_t *rest; member
H A Dnxt_sendbuf.c409 nxt_buf_t *b, *next, **last, *rest, **last_rest; in nxt_sendbuf_coalesce_completion() local
412 rest = NULL; in nxt_sendbuf_coalesce_completion()
413 last_rest = &rest; in nxt_sendbuf_coalesce_completion()
444 return rest; in nxt_sendbuf_coalesce_completion()
H A Dnxt_fastcgi_source.h72 nxt_buf_t *rest; member
H A Dnxt_http_static.c787 nxt_off_t rest; in nxt_http_static_body_handler() local
795 rest = fb->file_end - fb->file_pos; in nxt_http_static_body_handler()
801 alloc = nxt_min(rest, NXT_HTTP_STATIC_BUF_SIZE); in nxt_http_static_body_handler()
816 rest -= alloc; in nxt_http_static_body_handler()
818 } while (rest > 0 && ++n < NXT_HTTP_STATIC_BUF_COUNT); in nxt_http_static_body_handler()
849 nxt_off_t rest; in nxt_http_static_buf_completion() local
863 rest = fb->file_end - fb->file_pos; in nxt_http_static_buf_completion()
866 size = nxt_min(rest, (nxt_off_t) size); in nxt_http_static_buf_completion()
882 if (n == rest) { in nxt_http_static_buf_completion()
H A Dnxt_thread_time.c102 nxt_nsec_t interval, rest; in nxt_time_thread() local
127 rest = 1000000000 - now.realtime.nsec; in nxt_time_thread()
129 nxt_nanosleep(nxt_min(interval, rest)); in nxt_time_thread()
H A Dnxt_http_parse.c165 nxt_bool_t rest; in nxt_http_parse_request_line() local
257 rest = 0; in nxt_http_parse_request_line()
316 rest = 1; in nxt_http_parse_request_line()
385 if (rest) { in nxt_http_parse_request_line()
404 if (rest) { in nxt_http_parse_request_line()
H A Dnxt_http_route.c1408 nxt_str_t rest; in nxt_http_pass_segments() local
1410 if (nxt_slow_path(nxt_str_dup(mp, &rest, pass) == NULL)) { in nxt_http_pass_segments()
1417 p = nxt_memchr(rest.start, '/', rest.length); in nxt_http_pass_segments()
1426 segments->length = p - rest.start; in nxt_http_pass_segments()
1427 segments->start = rest.start; in nxt_http_pass_segments()
1429 rest.length -= segments->length + 1; in nxt_http_pass_segments()
1430 rest.start = p + 1; in nxt_http_pass_segments()
1434 *segments = rest; in nxt_http_pass_segments()
H A Dnxt_fastcgi_source.c664 fs->rest = b; in nxt_fastcgi_source_header_ready()
706 nxt_buf_chain_add(&fs->rest, in); in nxt_fastcgi_source_body_filter()
H A Dnxt_unit.c3197 size_t rest, copy, read; in nxt_unit_buf_read() local
3201 rest = size; in nxt_unit_buf_read()
3210 copy = nxt_min(rest, copy); in nxt_unit_buf_read()
3215 rest -= copy; in nxt_unit_buf_read()
3217 if (rest == 0) { in nxt_unit_buf_read()
3230 read = size - rest; in nxt_unit_buf_read()
/unit/src/ruby/
H A Dnxt_ruby.c1030 off_t rest; member
1042 size = nxt_min(size, (size_t) file->rest); in nxt_ruby_rack_file_read()
1048 file->rest -= res; in nxt_ruby_rack_file_read()
1051 file->rest = 0; in nxt_ruby_rack_file_read()
1055 read_info->eof = file->rest == 0; in nxt_ruby_rack_file_read()
1098 ruby_file.rest = finfo.st_size; in nxt_ruby_rack_result_body_file_write()
1101 ri.read_info.eof = ruby_file.rest == 0; in nxt_ruby_rack_result_body_file_write()
1102 ri.read_info.buf_size = ruby_file.rest; in nxt_ruby_rack_result_body_file_write()
/unit/src/python/
H A Dnxt_python_asgi_websocket.c493 uint64_t rest; in nxt_py_asgi_websocket_handler() local
522 rest = nxt_py_asgi_ws_max_frame_size - ws->pending_frame_len; in nxt_py_asgi_websocket_handler()
524 if (nxt_slow_path(frame->payload_len > rest)) { in nxt_py_asgi_websocket_handler()
530 rest = nxt_py_asgi_ws_max_buffer_size - ws->pending_payload_len; in nxt_py_asgi_websocket_handler()
532 if (nxt_slow_path(frame->payload_len > rest)) { in nxt_py_asgi_websocket_handler()
/unit/
H A DCONTRIBUTING.md77 - Limit the subject line to 67 characters, and the rest of the commit message