https://bz.apache.org/bugzilla/show_bug.cgi?id=60409

--- Comment #5 from Violeta Georgieva <violet...@apache.org> ---
Hi,

I succeeded to reproduce the exceptions from this issue [1].

1. Request a file with such a length so that "send file" is used.
 - just before serving the file [2], delete it, thus it will cause the
processor to be released and recycled. As a result this processor will be added
to the "recycled processors" [3].
 - after this while finishing the response the processor will be released and
recycled once again [4]. This will add the processor again to the "recycled
processors". As a result one and the same processor will be in the "recycled
processors".
2. Now request twice. One and the same processor will be provided for the two
different requests [5].

I do not know whether you scenario is similar. If you can describe your
scenario it will be helpful.

So currently we are using
org.apache.tomcat.util.collections.SynchronizedStack<T> which does not
guarantee uniqueness of the elements.

Regards,
Violeta



[1]
https://github.com/apache/tomcat/commit/74a12f550478b34261b39d2e324b3951e2ef80cc
[2]
https://github.com/apache/tomcat/blob/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java#L891
[3]
https://github.com/apache/tomcat/blob/trunk/java/org/apache/coyote/AbstractProtocol.java#L927
[4]
https://github.com/apache/tomcat/blob/trunk/java/org/apache/coyote/AbstractProtocol.java#L854
[5]
https://github.com/apache/tomcat/blob/trunk/java/org/apache/coyote/AbstractProtocol.java#L728

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to