stray CRLF before the second response's status line. Proxy now
tries to read one more line if it encounters a CRLF where it
expected a status.
PR: 10010
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94574
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.36
+ *) Proxy was bombing out every second keepalive request, caused by a
+ stray CRLF before the second response's status line. Proxy now
+ tries to read one more line if it encounters a CRLF where it
+ expected a status. PR 10010 [Graham Leggett]
+
*) Deprecated the apr_lock.h API. Please see the following files
for the improved thread and process locking and signaling:
apr_proc_mutex.h, apr_thread_mutex.h, apr_thread_rwlock.h,
apr_brigade_cleanup(bb);
len = ap_getline(buffer, sizeof(buffer), rp, 0);
+ if (len == 0) {
+ /* handle one potential stray CRLF */
+ len = ap_getline(buffer, sizeof(buffer), rp, 0);
+ }
if (len <= 0) {
apr_socket_close(p_conn->sock);
backend->connection = NULL;