Home
last modified time | relevance | path

Searched refs:max_bytes (Results 1 – 12 of 12) sorted by relevance

/lighttpd1.4/src/
H A Dconnections.c227 return max_bytes; in connection_write_throttled()
243 return max_bytes > 0 ? max_bytes : 0; /*(0 == reached traffic limit)*/ in connection_write_throttled()
251 max_bytes = connection_write_throttled(con, max_bytes); in connection_write_throttle()
253 return max_bytes; in connection_write_throttle()
264 max_bytes = connection_write_throttle(con, max_bytes); in connection_write_chunkqueue()
869 if (mem_len > (size_t)max_bytes) mem_len = (size_t)max_bytes; in connection_read_cq()
889 ? (frd < max_bytes) ? (size_t)frd : (size_t)max_bytes in connection_read_cq()
891 } while (max_bytes); in connection_read_cq()
1218 if (cqlen > 8192 && max_bytes > 65536) max_bytes = 65536; in connection_state_machine_h2()
1220 if (max_bytes < 0) max_bytes = 0; in connection_state_machine_h2()
[all …]
H A Dnetwork_write.c406 static int network_write_chunkqueue_writev(const int fd, chunkqueue * const cq, off_t max_bytes, lo… in network_write_chunkqueue_writev() argument
413 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
415 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
420 rc = network_write_file_chunk_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
422 rc = network_write_file_chunk_no_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
434 static int network_write_chunkqueue_sendfile(const int fd, chunkqueue * const cq, off_t max_bytes, … in network_write_chunkqueue_sendfile() argument
441 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
443 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
448 rc = network_write_file_chunk_sendfile(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
450 rc = network_write_file_chunk_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
[all …]
H A Dbase.h41 int (* network_write)(struct connection *con, chunkqueue *cq, off_t max_bytes);
42 int (* network_read)(struct connection *con, chunkqueue *cq, off_t max_bytes);
148 int (* network_backend_write)(int fd, chunkqueue *cq, off_t max_bytes, log_error_st *errh);
H A Dmod_gnutls.c2325 return con->network_read(con, cq, max_bytes); in mod_gnutls_read_err()
2381 max_bytes -= wr; in connection_write_cq_ssl()
2402 while (max_bytes > 0 && !chunkqueue_is_empty(cq)) { in connection_write_cq_ssl()
2404 uint32_t data_len = LOCAL_SEND_BUFSIZE < max_bytes in connection_write_cq_ssl()
2406 : (uint32_t)max_bytes; in connection_write_cq_ssl()
2441 max_bytes -= wr_total; in connection_write_cq_ssl()
2466 max_bytes -= wr; in connection_write_cq_ssl_ktls()
2482 if (len > max_bytes) len = max_bytes; in connection_write_cq_ssl_ktls()
2495 max_bytes -= wr; in connection_write_cq_ssl_ktls()
2500 return connection_write_cq_ssl(con, cq, max_bytes); in connection_write_cq_ssl_ktls()
[all …]
H A Dmod_ajp13.c214 const off_t max_bytes = hctx->request_id < req_cqlen in ajp13_stdin_append() local
220 for (off_t dlen; sent < max_bytes; sent += dlen) { in ajp13_stdin_append()
221 dlen = max_bytes - sent > AJP13_MAX_PACKET_SIZE - 4 in ajp13_stdin_append()
223 : max_bytes - sent; in ajp13_stdin_append()
H A Dmod_openssl.c3031 connection_write_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_write_cq_ssl() argument
3040 while (max_bytes > 0 && !chunkqueue_is_empty(cq)) { in connection_write_cq_ssl()
3042 uint32_t data_len = LOCAL_SEND_BUFSIZE < max_bytes in connection_write_cq_ssl()
3044 : (uint32_t)max_bytes; in connection_write_cq_ssl()
3075 max_bytes -= wr; in connection_write_cq_ssl()
3086 connection_write_cq_ssl_ktls (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_write_cq_ssl_ktls() argument
3101 if (len > max_bytes) len = max_bytes; in connection_write_cq_ssl_ktls()
3112 max_bytes -= wr; in connection_write_cq_ssl_ktls()
3117 return connection_write_cq_ssl(con, cq, max_bytes); in connection_write_cq_ssl_ktls()
3123 connection_read_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_read_cq_ssl() argument
[all …]
H A Dmod_mbedtls.c2024 connection_write_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_write_cq_ssl() argument
2040 max_bytes -= wr; in connection_write_cq_ssl()
2053 while (max_bytes > 0 && !chunkqueue_is_empty(cq)) { in connection_write_cq_ssl()
2055 uint32_t data_len = LOCAL_SEND_BUFSIZE < max_bytes in connection_write_cq_ssl()
2057 : (uint32_t)max_bytes; in connection_write_cq_ssl()
2098 max_bytes -= wr_total; in connection_write_cq_ssl()
2243 connection_read_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_read_cq_ssl() argument
2250 UNUSED(max_bytes); in connection_read_cq_ssl()
H A Dmod_wolfssl.c2732 connection_write_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_write_cq_ssl() argument
2741 while (max_bytes > 0 && !chunkqueue_is_empty(cq)) { in connection_write_cq_ssl()
2743 uint32_t data_len = LOCAL_SEND_BUFSIZE < max_bytes in connection_write_cq_ssl()
2745 : (uint32_t)max_bytes; in connection_write_cq_ssl()
2825 max_bytes -= wr; in connection_write_cq_ssl()
2835 connection_read_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_read_cq_ssl() argument
2842 UNUSED(max_bytes); in connection_read_cq_ssl()
H A Dmod_nss.c2175 connection_write_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_write_cq_ssl() argument
2188 while (max_bytes > 0 && !chunkqueue_is_empty(cq)) { in connection_write_cq_ssl()
2190 uint32_t data_len = LOCAL_SEND_BUFSIZE < max_bytes in connection_write_cq_ssl()
2192 : (uint32_t)max_bytes; in connection_write_cq_ssl()
2224 max_bytes -= wr_total; in connection_write_cq_ssl()
2241 connection_read_cq_ssl (connection * const con, chunkqueue * const cq, off_t max_bytes) in connection_read_cq_ssl() argument
2245 UNUSED(max_bytes); in connection_read_cq_ssl()
H A Dmod_extforward.c1161 static int mod_extforward_network_read (connection *con, chunkqueue *cq, off_t max_bytes);
1665 chunkqueue *cq, off_t max_bytes) in mod_extforward_network_read() argument
1693 return (0 == rc) ? con->network_read(con, cq, max_bytes) : rc; in mod_extforward_network_read()
H A Dserver.c111 static int (*oneshot_read_cq)(connection *con, chunkqueue *cq, off_t max_bytes);
474 static int server_oneshot_read_cq(connection *con, chunkqueue *cq, off_t max_bytes) { in server_oneshot_read_cq() argument
479 int rc = oneshot_read_cq(con, cq, max_bytes); in server_oneshot_read_cq()
H A Dh2.c1925 …d_client_connection_preface (struct connection * const con, chunkqueue * const cq, off_t max_bytes) in h2_read_client_connection_preface() argument
1933 if (max_bytes < 24) max_bytes = 24; /*(should not happen)*/ in h2_read_client_connection_preface()
1934 int rc = (network_read)(con, cq, max_bytes); in h2_read_client_connection_preface()