mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
pass on timeout to execWithTimeout()
This commit is contained in:
parent
7a44d2b35b
commit
ddac8ce1ce
|
@ -124,7 +124,7 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
|
||||||
$mimetype = $version->getMimeType();
|
$mimetype = $version->getMimeType();
|
||||||
if(isset($_convcmd[$mimetype])) {
|
if(isset($_convcmd[$mimetype])) {
|
||||||
$cmd = sprintf($_convcmd[$mimetype], $path);
|
$cmd = sprintf($_convcmd[$mimetype], $path);
|
||||||
$content = self::execWithTimeout($cmd);
|
$content = self::execWithTimeout($cmd, $timeout);
|
||||||
/*
|
/*
|
||||||
$fp = popen($cmd, 'r');
|
$fp = popen($cmd, 'r');
|
||||||
if($fp) {
|
if($fp) {
|
||||||
|
|
|
@ -129,7 +129,7 @@ class SeedDMS_SQLiteFTS_IndexedDocument extends SeedDMS_SQLiteFTS_Document {
|
||||||
$mimetype = $version->getMimeType();
|
$mimetype = $version->getMimeType();
|
||||||
if(isset($_convcmd[$mimetype])) {
|
if(isset($_convcmd[$mimetype])) {
|
||||||
$cmd = sprintf($_convcmd[$mimetype], $path);
|
$cmd = sprintf($_convcmd[$mimetype], $path);
|
||||||
$content = self::execWithTimeout($cmd);
|
$content = self::execWithTimeout($cmd, $timeout);
|
||||||
if($content) {
|
if($content) {
|
||||||
$this->addField('content', $content, 'unstored');
|
$this->addField('content', $content, 'unstored');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user