another patch to prevent CLOSE_WAIT status on solr connections

pull/1/head
Michael Peter Christen 12 years ago
parent 5091d627bc
commit 9a29ab469e

@ -156,6 +156,7 @@ public class RemoteInstance implements SolrInstance {
@Override
public void process(final HttpRequest request, final HttpContext context) throws IOException {
if (!request.containsHeader("Accept-Encoding")) request.addHeader("Accept-Encoding", "gzip");
if (!request.containsHeader("Connection")) request.addHeader("Connection", "close"); // prevent CLOSE_WAIT
}
});

Loading…
Cancel
Save