On 22/11/2021 18:28, Christopher Schultz wrote:
<snip/>
It seems like very little overhead -- especially because it's done only
once per connection and not, for example once per request or (much
worse) once-per-IO-event. So it's probably not worth the extra code
unless it's easy to swap-out the implementation class of NIO[2]?Endpoint
with DuplicateDetectorEndpoint or something like that.
I don't think it is easy, no.
I'll leave it as is for now.
Mark
If it's easy to do that, it might be worth wrapping the Endpoint with a
decorator (requires significant refactoring) or using a subclass which
overrides serverSocketAccept().
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org