> billbarker 02/04/10 22:58:03
>
> Modified: http11/src/java/org/apache/coyote/http11
> Http11Processor.java
> Log:
> Multiple Issues.
>
> -- Degrade to the socket port on HTTP/1.0 requests with a Host header
but no port number.
>
> -- Default to port 443 if an HTTP/1.1 request with no port header, but
we are configured to be Secure.
>
> -- Remember the RemoteHost/RemoteAddr per-connection so that only one
lookup is necessary (the 3.3.x Adapter recycles these, so memory is good).
>
> if (colonPos < 0) {
> - req.setServerPort(80);
> + if( http11 ) {
> + if(sslSupport == null) // not configured Secure
> + req.setServerPort(80);
> + else
> + req.setServerPort(443); // if Secure, assume https
> + } else {
> + // Assume that non-HTTP/1.1 clients are broken
> + req.setServerPort(socket.getLocalPort());
> + }
> req.serverName().setBytes( valueB, valueS, valueL);
> } else {
> req.serverName().setBytes( valueB, valueS, colonPos);
Yes, exactly what I wanted to do.
Thanks Bill.
Remy
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>