Lines Matching defs:max_bytes
56 int max_bytes; /* maximum file size else abort it */
169 if (h->content_length < 0 || h->content_length > h->max_bytes) {
329 h->max_bytes = 0;
337 h->max_bytes = 0;
450 if (h->max_bytes == 0) {
491 if (h->body_nbytes >= h->max_bytes) {
493 "httpread: body_nbytes=%d >= max_bytes=%d",
494 h->body_nbytes, h->max_bytes);
507 new_alloc_nbytes > h->max_bytes +
510 "httpread: Unacceptable body length %d (body_alloc_nbytes=%u max_bytes=%u)",
513 h->max_bytes);
548 h->chunk_size > h->max_bytes) {
726 * Pass max_bytes == 0 to not read body at all (required for e.g.
734 int max_bytes, /* maximum body size else abort it */
746 h->max_bytes = max_bytes;