Hi,
I don't understand the meaning of timeout of an asynchronous operation.
Servlet 3.0 says The time out applies to the AsyncContext once the
container-initiated dispatch during which one of the
ServletRequest.startAsync methods was called has returned to the container.
But when is the
Thanks.
So the only way to avoid the invocation of AsyncListener.onTimeout is that
we invoke AsyncContext.complete or AsyncContext.dispatch?
2013/5/24 Mark Thomas ma...@apache.org
On 24/05/2013 09:05, jie tang wrote:
Hi,
I don't understand the meaning of timeout of an asynchronous
So if I use AsyncContext.start to run a Runnable. When that Runnable does
some work but not write to response, will AsyncListener.onTimeout be
invoked?
2013/5/24 Mark Thomas ma...@apache.org
On 24/05/2013 09:16, jie tang wrote:
Thanks.
So the only way to avoid the invocation
Thank you very much
2013/5/24 Mark Thomas ma...@apache.org
On 24/05/2013 09:23, jie tang wrote:
So if I use AsyncContext.start to run a Runnable. When that Runnable does
some work but not write to response, will AsyncListener.onTimeout be
invoked?
Yes, unless you set the timeout
-5,5,main]onTimeout
Thread[http-bio-80-exec-5,5,main]onError null
Thread[http-bio-80-exec-5,5,main]onComplete
Although the Runnable writes some content. The onTimeout method is still
invoked.
2013/5/24 jie tang crybird2...@gmail.com
Thank you very much
2013/5/24 Mark Thomas ma
But it means that even if I write some content to response, the onTimeout
method is still called
2013/5/24 Mark Thomas ma...@apache.org
On 24/05/2013 10:15, jie tang wrote:
I tried the following code:
final AsyncContext async = req.startAsync();
async.setTimeout(3
the timeout.
2013/5/24 Mark Thomas ma...@apache.org
On 24/05/2013 10:27, jie tang wrote:
But it means that even if I write some content to response, the onTimeout
method is still called
Correct. The timeout starts when the AsyncContext is started and is
reset every time data is written
I place a directory in Tomcat webapps directory. I want to Tomcat list files
under the directory.
When I browse the file list in my browser, the file list looks like the
following
2011-02-12_r5384_1669/ Sat, 12 Feb 2011 09:40:44 GMT
But what I need is
2011-02-12_r5384_1669/
not
happen in req.startAsync() ? Thank you.
-Original Message- From: jie tang
Sent: Tuesday, November 09, 2010 2:40 PM
To: Tomcat Users List
Subject: Re: NIO connecter does not work after startup normally
You recursively invoke startAsync unlimitedly.
2010/11/9 Ben Xiong xpsl...@gmail.com
You recursively invoke startAsync unlimitedly.
2010/11/9 Ben Xiong xpsl...@gmail.com
?Another case:
Web.xml
?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=
From the exception stack.
Maybe you should use the command ping localhost to see whether your host
can resolve the host-name localhost.
2010/11/3 Karthik Nanjangude karthik.nanjang...@xius-bcgi.com
Hi
Tomcat shuts down with exception within few seconds?
SPEC
Sun JDK 1.5
TOMCAT 6.0.29
11 matches
Mail list logo