tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49698] AsyncContext timeout always return http 500
Date Wed, 04 Aug 2010 17:03:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49698

--- Comment #4 from heyoulin <heyoulin@hotmail.com> 2010-08-04 13:03:05 EDT ---
(In reply to comment #3)
> You are required by the spec to implement a listener to handle the timeout.
I have a listener to handle the timeout.
public void onTimeout(AsyncEvent event) throws IOException {
        event.getAsyncContext().complete();
    }

When implement event.getAsyncContext().complete() actually tomcat do
nothing.AsyncState is still in COMPLETING.So return http500.

So how to handle the timeout to make AsyncState to NOT_STARTED only using
servlet 3.0 api?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message