You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
We should close the connection for all 4xx and 5xx responses, I have a
local change to this effect but it broke some tests and I haven’t tracked
down why yet.
If you share this in a separate branch, I can take a look too. I'm working with connection cycle interruptions right now trying to figure out how to deal with them from the point of user's code (both for the server and the client) and how to keep channel's pipeline stable if anything goes wrong.
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, whenreject-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 @ztellmanThe text was updated successfully, but these errors were encountered: