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 51872] request.getRemoteAddr() sometimes returning IP address from the previous request
Date Thu, 22 Sep 2011 18:36:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51872

--- Comment #3 from charlie <charlesk40@yahoo.com> 2011-09-22 18:36:22 UTC ---
It's standalone.  No mod_jk. We have ran various packet captures to verify that
the IP address in the auth header is correct.  Since the IP address in the
header and the IP address from the getRemoteHost match, we believe that that
getRemoteAddr is wrong.  Difficult part of this is that we can not reproduce
this in our test environments.

Connector:
    <Connector allowTrace="true" asyncTimeout="10000" enableLookups="true"
maxPostSize="2097152" maxSavePostSize="4096" parseBodyMethods="POST"
redirectPort="-1" scheme="http" secure="false" URIEncoding="UTF-8"
xpoweredBy="false" acceptCount="100" acceptorThreadCount="1" address="0.0.0.0"
bindOnInit="true" socketBuffer="9000"
compressableMimeType="text/html,text/xml,text/plain" compression="off"
compressionMinSize="2048" connectionLinger="-1" connectionTimeout="60000"
connectionUploadTimeout="60000" disableUploadTimeout="true" executor=""
keepAliveTimeout="20000" maxConnections="200" maxHttpHeaderSize="8192"
maxKeepAliveRequests="1" maxThreads="200" maxTrailerSize="8192"
minSpareThreads="10" noCompressionUserAgents="" processorCache="200"
port="4080" restrictedUserAgents="" server="Apache" SSLEnabled="false"
tcpNoDelay="true"
sslImplemenationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
clientCertProvider="" keyPass="changeit" sslEnabledProtocols=""
trustManagerClassName="" trustMaxCertLength="5" truststoreAlgorithm=""/>

Valves:

 <Valve className="yjava.tomcat.valves.YahooConnectionValve"/>

     <Valve className="com.yahoo.yjava.YahooLogValve"
directory="/home/y/logs/yjava_tomcat/" yahooOpts="gmrswZX" prefix="access."
resolveHosts="false" suffix=".log" rotatable="true" buffered="false"
fileDateFormat="yyyy-MM-dd.HH"/>




More debugs.

2011-09-22 18:12:53,576 INFO  [org.apache.coyote.http11.Http11Protocol]
Starting ProtocolHandler ["http-bio-/0.0.0.0-4080"]
2011-09-22 18:12:53,586 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [default] in Context [] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,586 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [jsp] in Context [] for connector [Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,586 DEBUG [org.apache.catalina.connector.MapperListener]
Register Context [] for connector [Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,586 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [default] in Context [/yjava_ws_examples_filters] for
connector [Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [jsp] in Context [/yjava_ws_examples_filters] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [jersey] in Context [/yjava_ws_examples_filters] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [noop] in Context [/yjava_ws_examples_filters] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register Wrapper [requestparams] in Context [/yjava_ws_examples_filters] for
connector [Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register Context [/yjava_ws_examples_filters] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:12:53,587 DEBUG [org.apache.catalina.connector.MapperListener]
Register host [localhost] at domain [null] for connector
[Connector[HTTP/1.1-4080]]
2011-09-22 18:15:06,149 DEBUG [org.apache.coyote.http11.Http11Protocol]
Register
Catalina:type=RequestProcessor,worker="http-bio-/0.0.0.0-4080",name=HttpRequest1
2011-09-22 18:15:06,226 DEBUG [org.apache.catalina.connector.CoyoteAdapter] The
variable [uriBC] has value [/yjava_ws_examples_filters/v1/yiv/hello]
2011-09-22 18:15:06,226 DEBUG [org.apache.catalina.connector.CoyoteAdapter] The
variable [semicolon] has value [-1]
2011-09-22 18:15:06,226 DEBUG [org.apache.catalina.connector.CoyoteAdapter] The
variable [enc] has value [UTF-8]

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message