Lines Matching refs:max_bodysize
29 public $max_bodysize = 0;
30 public $max_bodysize_abort = true; // if set, abort if the response body is bigger than max_bodysize
171 $this->max_bodysize &&
320 if ($this->max_bodysize && preg_match('/\r?\nContent-Length:\s*(\d+)\r?\n/i', $r_headers, $match)) {
321 if ($match[1] > $this->max_bodysize) {
414 if ($this->max_bodysize && $chunk_size + strlen($r_body) > $this->max_bodysize) {
418 $chunk_size = $this->max_bodysize - strlen($r_body);
436 // read up to the content-length or max_bodysize
440 $this->max_bodysize &&
441 $this->max_bodysize < $this->resp_headers['content-length']
443 $length = $this->max_bodysize + 1;
449 } elseif (!isset($this->resp_headers['transfer-encoding']) && $this->max_bodysize && !$this->keep_alive) {
450 $r_body = $this->readData($socket, $this->max_bodysize + 1, 'response (content-length limited)', true);
460 // recheck body size, we might have read max_bodysize+1 or even the whole body, so we abort late here
461 if ($this->max_bodysize) {
462 if (strlen($r_body) > $this->max_bodysize) {