tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13172] - Port incorrect in getServerPort and in access log
Date Fri, 01 Aug 2003 00:32:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13172>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13172

Port incorrect in getServerPort and in access log





------- Additional Comments From rckenned@hotmail.com  2003-08-01 00:32 -------
Remy:

the servlet javadoc has the following for getServerPort():

    Returns the port number on which this request was received. For 
    HTTP servlets, same as the value of the CGI variable SERVER_PORT.

The SERVER_PORT variable should store "The TCP port on which the server is
running."
(http://developer.netscape.com/docs/manuals/js/server/jsref/toplev.htm#1109561).
That would seem to indicate that if getServerPort() is returning 80 when the
request comes in on TCP port 8080, it's a bug.

Ryan

Mime
View raw message