5
edits
Changes
Timeouts
,Add Download timeout notes from v1.1.0 changelog https://wpkg.org/files/beta/Changelog-1.1.0-M4
=== Default setting of wpkg.js ===
The server-side script wpkg.js has a build built in default timeout of 3600 seconds = 60 minutes = 1 hour, it specifies the total time all installation processes are allowed to run.
=== WPKG Client Settings ===
=== Package Timeout Attribute ===
Each '''install''', '''upgrade ''' and '''remove''' entry has an optional timeout attribute, which overrides the timeout for this entry only.<br>
<source lang="xml">
<!-- abort installation that usually takes three minutes after five minutes -->
<install timeout="300" cmd="..." />
</source>
The '''download''' entry also has an optional timeout attribute, which defaults to the <code>downloadTimeout</code> as specified within [[config.xml]]. If omitted, this defaults to 7200.
== Why use Timeouts ==