Commit 2925229188c76d014b42a7588a01ff23dd08b3bd
1 parent
1f0c45fd
KTS-4201. Added a timeout of 120 seconds to the text extraction socket read/write
'XML-RPC: xmlrpcmsg::parseResponse: no response received from server.' error in Apache log KTS-4236. Added a timeout of 60 seconds to the search query call KT Indexer Fixed Committed by: Paul Barrett Reviewed by: Megan Watson
Showing
2 changed files
with
3 additions
and
3 deletions
bin/luceneserver/ktlucene.jar
No preview for this file type
search2/indexing/lib/XmlRpcLucene.inc.php
| @@ -249,7 +249,7 @@ class XmlRpcLucene | @@ -249,7 +249,7 @@ class XmlRpcLucene | ||
| 249 | php_xmlrpc_encode((string) $this->authToken), | 249 | php_xmlrpc_encode((string) $this->authToken), |
| 250 | php_xmlrpc_encode((string) $query))); | 250 | php_xmlrpc_encode((string) $query))); |
| 251 | 251 | ||
| 252 | - $result=&$this->client->send($function); | 252 | + $result=&$this->client->send($function, 60); |
| 253 | if($result->faultCode()) | 253 | if($result->faultCode()) |
| 254 | { | 254 | { |
| 255 | $this->error($result, 'query'); | 255 | $this->error($result, 'query'); |
| @@ -295,7 +295,7 @@ class XmlRpcLucene | @@ -295,7 +295,7 @@ class XmlRpcLucene | ||
| 295 | array( | 295 | array( |
| 296 | new xmlrpcval($content, 'base64')) | 296 | new xmlrpcval($content, 'base64')) |
| 297 | ); | 297 | ); |
| 298 | - $result =& $this->client->send($function); | 298 | + $result =& $this->client->send($function, 120); |
| 299 | 299 | ||
| 300 | unset($content); | 300 | unset($content); |
| 301 | 301 | ||
| @@ -390,7 +390,7 @@ class XmlRpcLucene | @@ -390,7 +390,7 @@ class XmlRpcLucene | ||
| 390 | php_xmlrpc_encode((string)$toExtension) | 390 | php_xmlrpc_encode((string)$toExtension) |
| 391 | )); | 391 | )); |
| 392 | 392 | ||
| 393 | - $result=&$this->client->send($function); | 393 | + $result=&$this->client->send($function, 120); |
| 394 | 394 | ||
| 395 | unset($content); | 395 | unset($content); |
| 396 | 396 |