On Sat, 17 Aug 2002, tek1 wrote:
> Date: Sat, 17 Aug 2002 17:47:32 +0900
> From: tek1 <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: retrieving HttpSession in Filter?
>
> eddie and craig, thanks for your replies.
>
> i was calling the HttpServletRequest.getSession() before the response was
> committed. in the below code on line 4, i didn't mention that was using a
> responseWrapper, so the servlet used the responseWrapper, and when control
> returned to the filter, the filter called HttpServletRequest.getSession()
> before committing the response.
>
> HttpServletRequest.getSession(false) works, but
> HttpServletRequest.getSession() *before* committing the response, resulted
> in a hang...
>
> is that behavior correct?
>
There shouldn't ever be a hang, obviously. Are you sure you don't have
any infinite loop in your wrappers somewhere (it's pretty easy to get that
messed up)?
There aren't any hangs in the standard Tomcat code for getSession().
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>