Skip to main content

[JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout

  • From: "markt_asf (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout
  • Date: Mon, 30 Jan 2012 19:33:39 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/SERVLET_SPEC-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=330252#action_330252
 ] 

markt_asf commented on SERVLET_SPEC-6:
--------------------------------------

It should be possible to use a thin, "throw away" wrapper around the 
AsyncContext that tracked state and threw the Exception leaving the 
underlying AsyncContext implementation to be safely recycled. Whether this 
complexity is worth the benefit of changing behaviour from "undertermined" to 
"throws ISE" is TBD.

My own view is that the complexity is worth the benefit. These sorts of 
re-use bugs can be really tricky to track down and this change would help 
considerably.

> Undefined behaviour for AsyncContext#getRequest() and getResponse() after 
> timeout
> ---------------------------------------------------------------------------------
>
>                 Key: SERVLET_SPEC-6
>                 URL: http://java.net/jira/browse/SERVLET_SPEC-6
>             Project: servlet-spec
>          Issue Type: Improvement
>            Reporter: markt_asf
>            Assignee: Shing Wai Chan
>
> The specification is unclear on what should happen here. Clearly, it isn't 
> going to work but how it fails and when it fails is undefined.
> My preference is for declaring that those methods throw 
> IllegalStateException in those circumstances.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout

Shing Wai Chan (JIRA) 01/07/2012

<Possible follow-up(s)>

[JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout

gregwilkins (JIRA) 01/30/2012

[JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout

markt_asf (JIRA) 01/30/2012

[JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout

gregwilkins (JIRA) 01/31/2012
 
 
Close
loading
Please Confirm
Close