tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: No access log line if client aborts
Date Wed, 02 Dec 2015 20:08:12 GMT

On 12/2/15 2:13 PM, Mike Wartes wrote:
> I'm having a problem where requests made to Tomcat that the client aborts
> early wind up not producing an access log line. I've reproduced it on
> Tomcat 7.0.39 and Tomcat 8.0.28.
> The repro case is pretty easy. Just use a browser to make a request to any
> application endpoint and then close the browser tab before the request
> finishes.

Can you confirm whether the request line has been sent to Tomcat at this

> Stepping through the Tomcat source code it's pretty clear why the access
> log is skipped in this case. The CoyoteAdapter calls
> response.finishResponse() before calling the access log. If the client is
> gone, the finishResponse method throws an exception when trying to flush
> its output buffer, which causes the access log line to be skipped.
> Does anyone have any insight into this problem?

Sounds like it would be pretty easy to correct this problem if it's as
simple as you describe.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message