I'm using
org.apache.http.impl.client.CloseableHttpClient
to send a request. Whenever the size of one of the headers is large (around 103452
bytes), I get a:
java.net.SocketException: Connection reset
The connection is probably not being reset by the server, since other clients from other java apps (probably using a spring OAUTH/REST client) appear to be able to use the service while sending similarly large headers.
Even though the proper fix is to avoid the need to send such a large header in the first place, is there a configuration of org.apache.http.impl.client.CloseableHttpClient
that will prevent it from crashing on large headers?
The client is built with:
HttpClientBuilder.create().useSystemProperties().build()