Open
Description
When rejecting an invalid request, we close the underlying connection here. But when rejecting it because of RejectedExecutionException
, we do not. We probably do not need to do this, when reject-handler
is defined by the user, but in case we return 503 status code to the client by ourselves.... it might be the case that request body was not consumed and the client misbehaved ignoring our premature response. To make sure this would not break the next request decoding, we probably need to clean everything up by closing the connection. It may lead to increased load on the server when rejected clients will try to reconnect... so I'm wondering about what is the best option here. /cc @ztellman