65203 – Coyote Request not properly recycled after asynchronous error.
Bug 65203 - Coyote Request not properly recycled after asynchronous error.
Summary: Coyote Request not properly recycled after asynchronous error.
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 9.0.44
Hardware: All All
: P2 major (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 12:32 UTC by rbeaudry
Modified: 2021-03-24 15:13 UTC (History)
0 users



Attachments
Tomcat output with issue replicated. First request behavior is expected and 2nd show the issue with the request not being recycled. (202.49 KB, text/plain)
2021-03-24 12:32 UTC, rbeaudry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rbeaudry 2021-03-24 12:32:07 UTC
Created attachment 37785 [details]
Tomcat output with issue replicated. First request behavior is expected and 2nd show the issue with the request not being recycled.

When an exception is thrown during the execution of an asynchronous request, all subsequent request that are processed in a ReadListener fail with
the following exception:

Caused by: java.io.EOFException: Unexpected EOF read on the socket
	at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:813)
	at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:42)
	at org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1158)
	at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:102)
	at org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:248)
	at org.apache.coyote.Request.doRead(Request.java:565)
	at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:336)
	... 16 more

This is caused by the errorException object not being recycled in the org.apache.coyote.Request class.
Comment 1 Mark Thomas 2021-03-24 15:13:31 UTC
Fixed in:
- 10.0.x for 10.0.5 onwards
- 9.0.x for 9.0.45 onwards
- 8.5.x for 8.5.65 onwards