mod_proxy: Don't lose bytes when a response line arrives in small chunks.
PR 40894
Submitted by: niq
Reviewed by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@574941
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.7
+ *) mod_proxy: Don't lose bytes when a response line arrives in small chunks.
+ PR 40894 [Andrew Rucker Jones <arjones simultan.dyndns.org>]
Changes with Apache 2.2.6
http://svn.apache.org/viewvc?view=rev&revision=573911
+1: niq, rpluem, jim
- * mod_proxy: Don't lose bytes when a response line arrives in small chunks.
- PR 40894
- http://svn.apache.org/viewvc?view=rev&revision=573903
- +1: niq, rpluem, jim
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* mpm_winnt: Eliminate wait_for_many_objects. Allows the clean
len = (bufflen-1)-(pos-buff);
}
if (len > 0) {
- pos = apr_cpystrn(pos, response, len);
+ memcpy(pos, response, len);
+ pos += len;
}
}
APR_BUCKET_REMOVE(e);
apr_bucket_destroy(e);
}
+ *pos = '\0';
}
return APR_SUCCESS;