I have recently faced a problem with request queue in Play framework. When server is overloaded and is unable to handle request on time requests are put in the queue. Even if requester disconnects request still stays in the queue and will be handled by a controller. During stress test controllers worked on requests received even 30min earlier.
This leads to kind of denial of service. Is it possible to set request queue depth or request time to live?
Any other solution will be also appreciated.