Say I have the following filter which is responsible for timing all requests
in my application:
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain filterChain) throws IOException, ServletException {
startTiming(request, response);
filterChain.doFilter(request, response);
stopTimingAndLogTime(request, response);
}
The problem is that if the delegated servlet gets a connection timeout, my
filter doesn't know about it, and prints a value like 20000 ms in the logs
(whatever the HTTP Connector's connectionTimeout attribute is set to).
Is there any way for my filter to know that a connection has timed out, so I
can exclude these requests from my timing statistics? I haven't been able
to find much info about how this is implemented.
Thanks,
Alex
--
View this message in context:
http://www.nabble.com/Can-a-Filter-know-that-a-connection-timeout-has-occurred--tp16396498p16396498.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]