From 9a29ab469e2aff9ce38849565fd3e636d44598e8 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 11 Jul 2013 12:53:39 +0200 Subject: [PATCH] another patch to prevent CLOSE_WAIT status on solr connections --- source/net/yacy/cora/federate/solr/instance/RemoteInstance.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/net/yacy/cora/federate/solr/instance/RemoteInstance.java b/source/net/yacy/cora/federate/solr/instance/RemoteInstance.java index a4f3b8fea..0e96a66fe 100644 --- a/source/net/yacy/cora/federate/solr/instance/RemoteInstance.java +++ b/source/net/yacy/cora/federate/solr/instance/RemoteInstance.java @@ -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 } });