Skip to main content

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

  • From: "Shing Wai Chan (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (SERVLET_SPEC-6) Undefined behaviour for AsyncContext#getRequest() and getResponse() after timeout
  • Date: Thu, 2 Feb 2012 01:13:53 +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=330446#action_330446
 ] 

Shing Wai Chan commented on SERVLET_SPEC-6:
-------------------------------------------

After timeout or commit, we would like to clarify the use of those previously 
acquired request or response objects are undefined.
The question is AysncContext.getRequest()/getResponse().
I prefer to have a deterministic behavior here.
As mentioned by Mark, this is feasible in the implementation, I would prefer 
to throw ISE in this case.

> 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) 02/02/2012
 
 
Close
loading
Please Confirm
Close