mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
new version, catch exception in execWithTimeout()
This commit is contained in:
parent
77eab44dc1
commit
fab21da3d8
|
@ -133,9 +133,12 @@ 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, $timeout);
|
try {
|
||||||
if($content) {
|
$content = self::execWithTimeout($cmd, $timeout);
|
||||||
$this->addField('content', $content, 'unstored');
|
if($content) {
|
||||||
|
$this->addField('content', $content, 'unstored');
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
<email>uwe@steinmann.cx</email>
|
<email>uwe@steinmann.cx</email>
|
||||||
<active>yes</active>
|
<active>yes</active>
|
||||||
</lead>
|
</lead>
|
||||||
<date>2016-03-29</date>
|
<date>2017-03-01</date>
|
||||||
<time>08:09:48</time>
|
<time>15:53:24</time>
|
||||||
<version>
|
<version>
|
||||||
<release>1.0.6</release>
|
<release>1.0.7</release>
|
||||||
<api>1.0.1</api>
|
<api>1.0.7</api>
|
||||||
</version>
|
</version>
|
||||||
<stability>
|
<stability>
|
||||||
<release>stable</release>
|
<release>stable</release>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
fix calculation of timeout (see bug #269)
|
catch exception in execWithTimeout()
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
@ -162,5 +162,21 @@ make it work with sqlite3 < 3.8.0
|
||||||
set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0
|
set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0
|
||||||
</notes>
|
</notes>
|
||||||
</release>
|
</release>
|
||||||
|
<release>
|
||||||
|
<date>2016-03-29</date>
|
||||||
|
<time>08:09:48</time>
|
||||||
|
<version>
|
||||||
|
<release>1.0.6</release>
|
||||||
|
<api>1.0.1</api>
|
||||||
|
</version>
|
||||||
|
<stability>
|
||||||
|
<release>stable</release>
|
||||||
|
<api>stable</api>
|
||||||
|
</stability>
|
||||||
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
|
<notes>
|
||||||
|
fix calculation of timeout (see bug #269)
|
||||||
|
</notes>
|
||||||
|
</release>
|
||||||
</changelog>
|
</changelog>
|
||||||
</package>
|
</package>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user