manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1437900 - /manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Date Thu, 24 Jan 2013 08:49:29 GMT
Author: kwright
Date: Thu Jan 24 08:49:28 2013
New Revision: 1437900

URL: http://svn.apache.org/viewvc?rev=1437900&view=rev
Log:
Additional workaround for CONNECTORS-616.  This may slow things down by requiring that each
connection be verified alive before it is used, but it does reduce the number of IOExceptions
from Solr markedly.

Modified:
    manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java

Modified: manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java?rev=1437900&r1=1437899&r2=1437900&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
(original)
+++ manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Thu Jan 24 08:49:28 2013
@@ -213,7 +213,7 @@ public class HttpPoster
           
     BasicHttpParams params = new BasicHttpParams();
     params.setBooleanParameter(CoreConnectionPNames.TCP_NODELAY,true);
-    params.setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK,false);
+    params.setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK,true);
     params.setBooleanParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS,true);
     params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,socketTimeout);
     params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,connectionTimeout);



Mime
View raw message