jetty.project
jetty.project copied to clipboard
Improve QueuedThreadPool handling of rejected jobs
trafficstars
Jetty version(s) 12.0.x
Enhancement Description
In QueuedThreadPool, if a job fails to be added to the queue, it is immediately rejected.
This is different from JDK's ThreadPoolExecutor, where if the job fails to be added to the queue, there is an attempt at creating one more thread with that job already assigned to it, and only if the thread cannot be created then the job is rejected.