Name
SetNetworkTimeout -- set global timeout for network functions (V5.0)
Synopsis
SetNetworkTimeout(ms)
Function
This function can be used to define a global timeout setting for all functions of the Hollywood network library. By default, this timeout is set to 10000 milliseconds (10 seconds). This means that if a server takes longer than 10 seconds to respond, the network library will automatically terminate the connection. Defining such a timeout is very important to make sure that network functions cannot block your whole script just because a server is down. Thus, there should always be a reasonable timeout value.

Normally, it should not be necessary to use this function. In rare circumstances, however, it might be useful to modify the global timeout value. If you need to do so, just pass the desired timeout value in milliseconds to this function.

Inputs
ms
new desired global timeout in milliseconds (defaults to 10000 milliseconds)

Show TOC