Fix for CONNECTORS-1194.

git-svn-id: https://svn.apache.org/repos/asf/manifoldcf/integration/solr-3.x/trunk@1677383 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 501a2ab..0ed291b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,9 @@
 
 ======================= 2.2-SNAPSHOT =====================
 
+CONNECTORS-1194: Stale connection checks enabled.
+(Karl Wright)
+
 ======================= Release 2.1 =====================
 
 CONNECTORS-914: Go to a Maven build system.
diff --git a/src/main/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java b/src/main/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
index 5d55553..734124d 100644
--- a/src/main/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
+++ b/src/main/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
@@ -112,7 +112,7 @@
         // Initialize the connection pool
         HttpConnectionManagerParams params = new HttpConnectionManagerParams();
         params.setTcpNoDelay(true);
-        params.setStaleCheckingEnabled(false);
+        params.setStaleCheckingEnabled(true);
         params.setDefaultMaxConnectionsPerHost(poolSize);
         params.setMaxTotalConnections(poolSize);
         httpConnectionManager = new MultiThreadedHttpConnectionManager();
diff --git a/src/main/java/org/apache/solr/mcf/ManifoldCFSearchComponent.java b/src/main/java/org/apache/solr/mcf/ManifoldCFSearchComponent.java
index 9b9c85d..b88f462 100644
--- a/src/main/java/org/apache/solr/mcf/ManifoldCFSearchComponent.java
+++ b/src/main/java/org/apache/solr/mcf/ManifoldCFSearchComponent.java
@@ -121,7 +121,7 @@
     // Initialize the connection pool
     HttpConnectionManagerParams params = new HttpConnectionManagerParams();
     params.setTcpNoDelay(true);
-    params.setStaleCheckingEnabled(false);
+    params.setStaleCheckingEnabled(true);
     params.setDefaultMaxConnectionsPerHost(poolSize);
     params.setMaxTotalConnections(poolSize);
     httpConnectionManager = new MultiThreadedHttpConnectionManager();