[wpkg-users] Timeout value precedence

Rainer Meier r.meier at wpkg.org
Mon Apr 6 14:53:03 CEST 2009


Hi Stefan,

Pendl Stefan wrote:
> Imagine following situation:
> Installation will last for 5 minutes usually, there is no timeout specified explicitly.
> Now this installation hangs for one hour, since there is no timeout specified in the package.

Why should it "hang" for 1 hour then?
As Tomasz already explained there are two types of timeouts:
- A timeout per COMMAND. This timeout is set to 3600 seconds per default (1
hour). WPKG (the server-side js script) will terminate the command if it does
not finish its job before the timeout is reached.

- A timeout for the whole WPKG service run time. WPKG client terminates wpkg.js
if it runs for longer than this amount of time.


BUT: Remember that if a command terminates after 1 sec for instance, then
wpkg.js will return immediately and also the service terminates immediately
after wpkg.js finished its job. So if all your installations are running
properly and finish within 30 seconds, then WPKG client will run no longer than
30 seconds - even if you set the timeout to 1 hour.

So set the timeout as high as possible to complete the longest operation
expected. The timeout is mainly there in order to prevent WPKG (client or
server-side) to block the machine too long in case something goes wrong (e.g.
installer asking for user input and does not terminate/finish therefore.

br,
Rainer



More information about the wpkg-users mailing list