[jboss-jira] [JBoss JIRA] (JBWEB-256) startAsync() cannot be called multiple times

Richard Opalka (JIRA) jira-events at lists.jboss.org
Mon Nov 26 08:42:22 EST 2012


    [ https://issues.jboss.org/browse/JBWEB-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736946#comment-12736946 ] 

Richard Opalka edited comment on JBWEB-256 at 11/26/12 8:40 AM:
----------------------------------------------------------------

>From javadoc is not clear to me which of these two statements have to be true:

Subsequent invocations of this method, or its overloaded variant, will return the same AsyncContext instance, reinitialized as appropriate.

or

Throws: 
... or if this method is called again without any asynchronous dispatch (resulting from one of the AsyncContext#dispatch methods), is called outside the scope of any such dispatch, or is called again within the scope of the same dispatch, ...

                
      was (Author: ropalka):
    From javadoc is not clear to me which of these two statements have to be true:

{code}
Subsequent invocations of this method, or its overloaded variant, will return the same AsyncContext instance, reinitialized as appropriate.
{code}

or

{code}
Throws: 
... or if this method is called again without any asynchronous dispatch (resulting from one of the AsyncContext#dispatch methods), is called outside the scope of any such dispatch, or is called again within the scope of the same dispatch, ...
{code}
                  
> startAsync() cannot be called multiple times
> --------------------------------------------
>
>                 Key: JBWEB-256
>                 URL: https://issues.jboss.org/browse/JBWEB-256
>             Project: JBoss Web
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tomcat
>            Reporter: Richard Opalka
>            Assignee: Remy Maucherat
>             Fix For: JBossWeb-7.2.0.Beta1
>
>
> According to startAsync() javadoc:
> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#startAsync%28%29
> the startAsync method can be called multiple times. This is not
> possible with JBossWeb 7.2.0.Alpha5, because in:
> org.apache.catalina.connector.Request.startAsync(ServletRequest,ServletResponse) 
> is line:
> {code}
> canStartAsync = false;
> {code}
> preventing multiple calls of this method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list