users@grizzly.java.net

Re: debug patch on grizzly-http-utils-1.8.6.6.jar

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Wed, 30 May 2012 11:54:02 -0700

On 5/30/12 4:07 AM, gajanan.x.kulkarni_at_oracle.com wrote:
> Hi
> while debugging a issue under heavy load, there seems to be some code
> in question
>
> I retrieve remote address on the request by calling
> *
> request.action(ActionCode.ACTION_REQ_HOST_ADDR_ATTRIBUTE, param);
> request.remoteAddr().getString()*
>
> under load the return value of *request.remoteAddr().getString() is
> not correct, if my thinking is correct it returns some stale value
> based on the source code of Request.java in grizzly
>
> *so I want a debug patch which will uncomment
>
> * //remoteAddrMB.setString("127.0.0.1");
>
> to understand that remoteAddr , I am getting is not stale value
>
> can someone make changes to Request.java recycle method and compile it
> and give it to me
> we are using *grizzly-http-utils-1.8.6.6.jar, so code needs to be
> changed based on this version.
It should be straight forward to check the tag out [1] and make any
changes necessary to aid in your
debugging.

[1] https://svn.java.net/svn/grizzly~svn/tags/1_8_6_6
>
> also if someone knows if we have any issues like under race condition
> it fails to get correct value for remoteAddr, please share the details.
>
> Thanks
> Gajanan