* Do not try to read non existing response bodies of HEAD requests.
PR: 34275
Submitted by: Takashi Sato <serai lans-tv.com>
Reviewed by: rpluem
Submitted by: rpluem
Reviewed by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@649115
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.9
+ *) ab: Do not try to read non existing response bodies of HEAD requests.
+ PR 34275 [Takashi Sato <serai lans-tv.com>]
+
*) ab: Use a 64 bit unsigned int instead of a signed long to count the
bytes transferred to avoid integer overflows. PR 44346 [Ruediger Pluem]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * ab: ab very poor performance with both -k and -i cmdline options specified
- PR34275
- Trunk version of patch:
- http://svn.apache.org/viewvc?rev=612954&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, jim, covener
-
* http_filter: Don't spin if we get an error when reading
(the next) chunk.
PR: 44381
cl = strstr(c->cbuff, "Content-length:");
if (cl) {
c->keepalive = 1;
- c->length = atoi(cl + 16);
+ /* response to HEAD doesn't have entity body */
+ c->length = posting >= 0 ? atoi(cl + 16) : 0;
}
}
c->bread += c->cbx - (s + l - c->cbuff) + r - tocopy;