Home
last modified time | relevance | path

Searched refs:cqlen (Results 1 – 8 of 8) sorted by relevance

/lighttpd1.4/src/
H A Dmod_echo.c36 off_t cqlen = chunkqueue_length(cq); in mod_echo_request_body() local
44 if (cqlen > 65536) { in mod_echo_request_body()
45 cqlen = 65536; in mod_echo_request_body()
51 if (0 != http_chunk_transfer_cqlen(r, cq, (size_t)cqlen)) in mod_echo_request_body()
60 cqlen = chunkqueue_length(cq); in mod_echo_request_body()
61 if (cq->bytes_in != (off_t)r->reqbody_length && cqlen < 65536 - 16384) { in mod_echo_request_body()
H A Dh2.c1718 for (off_t cqlen = chunkqueue_length(cq); cqlen >= 9; ) { in h2_parse_frames() local
1759 cqlen = chunkqueue_length(cq); in h2_parse_frames()
1771 cqlen -= (9+flen); in h2_parse_frames()
1790 cqlen -= (9+flen); in h2_parse_frames()
1841 cqlen -= (9+flen); in h2_parse_frames()
1859 const off_t cqlen = chunkqueue_length(cq); in h2_want_read() local
1860 if (cqlen < 9) return 1; in h2_want_read()
1876 for (uint32_t n = 9+flen; cqlen >= n+9; n += 9+flen) { in h2_want_read()
2650 const off_t cqlen = chunkqueue_length(cq); in h2_send_cqdata() local
2651 if ((int32_t)dlen > cqlen) dlen = (uint32_t)cqlen; in h2_send_cqdata()
[all …]
H A Dchunk.c854 const off_t cqlen = chunkqueue_length(dest); in chunkqueue_to_tempfiles() local
857 dest->bytes_in -= cqlen; in chunkqueue_to_tempfiles()
858 if (0 == chunkqueue_steal_with_tempfiles(dest, &src, cqlen, errh)) in chunkqueue_to_tempfiles()
1680 off_t cqlen = chunkqueue_length(cq); in chunkqueue_read_squash() local
1681 if (cqlen >= UINT32_MAX) return NULL; in chunkqueue_read_squash()
1686 chunk * const c = chunk_acquire((uint32_t)cqlen+1); in chunkqueue_read_squash()
1688 uint32_t dlen = (uint32_t)cqlen; in chunkqueue_read_squash()
H A Dhttp-header-glue.c1294 off_t cqlen = chunkqueue_length(&r->write_queue); in http_response_read() local
1295 if (cqlen + (off_t)toread > 65536 - 4096) { in http_response_read()
1304 if (cqlen >= 65536-1) { in http_response_read()
1309 toread = 65536 - 1 - (unsigned int)cqlen; in http_response_read()
H A Dresponse.c186 off_t cqlen; in http_response_write_header() local
189 && (cqlen = chunkqueue_length(cq) - r->resp_header_len) > 0 in http_response_write_header()
190 && cqlen < 16384) in http_response_write_header()
H A Dmod_cgi.c726 off_t cqlen = chunkqueue_length(cq); in cgi_write_request() local
727 if (cq->bytes_in != r->reqbody_length && cqlen < 65536 - 16384) { in cgi_write_request()
739 if (0 == cqlen) { /*(chunkqueue_is_empty(cq))*/ in cgi_write_request()
H A Dmod_webdav.c4672 off_t cqlen = chunkqueue_length(cq); in mod_webdav_put_prep() local
4679 if (0 != cqlen) /*(r->physical.path copied, then c->mem cleared below)*/ in mod_webdav_put_prep()
4680 chunkqueue_append_file_fd(cq, &r->physical.path, fd, 0, cqlen); in mod_webdav_put_prep()
4826 off_t cqlen = chunkqueue_length(cq); in mod_webdav_put_range() local
4833 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff,(size_t)cqlen, 0); in mod_webdav_put_range()
4836 (size_t)(cqlen < INT32_MAX in mod_webdav_put_range()
4837 ? cqlen in mod_webdav_put_range()
4841 } while (wr > 0 && (cqlen -= wr)); in mod_webdav_put_range()
4844 off_t wrote = chunkqueue_length(cq) - cqlen; in mod_webdav_put_range()
4847 if (0 != cqlen) /* fallback, retry if copy_file_range() did not finish */ in mod_webdav_put_range()
H A Dconnections.c1217 const off_t cqlen = chunkqueue_length(con->write_queue); in connection_state_machine_h2() local
1218 if (cqlen > 8192 && max_bytes > 65536) max_bytes = 65536; in connection_state_machine_h2()
1219 max_bytes -= cqlen; in connection_state_machine_h2()