Brian Rectanus wrote:
On 8/3/06, Dmitry Butskoy <[EMAIL PROTECTED]> wrote:
I've found that most browsers (Mozilla, IE) send also "Proxy-Connection:
keep-alive" header. IE6 sends it too when uses "CONNECTION ...
HTTP/1.0". This header is similar to ordinary "Connection: keep-alive"
header, which alters the behaviour of (normally connection-close)
HTTP/1.0 .
It seems to me that it is Apache issue. Apache ignores
"Proxy-Connection" now at all, but IMHO should handle it properly. (Some
needed code seems to be added to
modules/http/http_protocol.c:ap_set_keepalive() function).
I hope it is some kind of an "easy fix" issue.
Dmitry,
Have you tried something like this (untested, but you
get the idea)?
SetEnvIf ^Proxy-Connection$ (.*) CONN_HEADER=$1
RequestHeader unset Connection
RequestHeader add Connection "${CONN_HEADER}e"
-B
Well,
I've already written a patch for mod_auth_ntlm_winbind (included in my
.src.rpm above), which does the similar thing:
+ if (r->method_number == M_CONNECT &&
+ r->proto_num == HTTP_VERSION(1,0) &&
+ !apr_table_get(r->headers_in, "Connection") &&
+ ap_find_token(r->pool,
+ apr_table_get(r->headers_in, "Proxy-Connection"),
+ "keep-alive") != 0
+ ) {
+ apr_table_mergen(r->headers_in, "Connection", "keep-alive");
+ }
After this patch all works OK.
(IMHO it is a little bit incorrect, but IE6 eats this silently.
Regards,
Dmitry Butskoy