title: java.net.SocketException: Connection reset, large HTTP headers
body: <p>I'm using 
  <code>org.apache.http.impl.client.CloseableHttpClient</code>
  to send a request. Whenever the size of one of the headers is large (around <code>103452</code> bytes), I get a:</p>
  
  <p>java.net.SocketException: Connection reset</p>
  
  <p>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.</p>
  
  <p>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 <code>org.apache.http.impl.client.CloseableHttpClient</code> that will prevent it from crashing on large headers?</p>
  
  <p>The client is built with:</p>
  
  <pre><code>HttpClientBuilder.create().useSystemProperties().build()
  </code></pre>