Hi Stuart,
Thanks for the prompt reply. I am developing a critical high-performance web server and I am unsure whether I could hit the issue of many connections sitting in TIME_WAIT state or not (I came across it through a wrongly designed benchmark), I know this could happen under different obscure scenarios but it mostly doesn't if things are more or less correct... I just wanted to be on the safe side to be able to set SO_LINGER to 0 if I ever need to.
For 2), I gave it a try and it seems to work, I see the semantics are similar to those of DoSFilter in Jetty: it rate-limits the number of requests per active connection, not overall. Except that there is a "pending" queue. What I like from the DoSFilter in Jetty is that it can also kill active requests if they take more than a certain number of milliseconds, is there something in Undertow like that or how would you implement it?
Thanks,