When I try to hit the server with the wrong credentials for basic
authentication, I am getting a *socket-write exception* which should
ideally return a 401 status code. The server is closing the connection
immediately after it finds the credentials incorrect while the client is
still sending the body.

This is happening when the payload in the POST request is a large one.
There is no issue with the request that has correct credentials.

Is there is any possible solution for this? or is it a limitation on the
client due to blocking IO?

Appreciate any help! Thanks!

Reply via email to