On the new library you can use the public
setConnectTimeout method to change the timeout.
On the old library that setting exists but as a private method; you can use it but it is not officially supported nor documented:
[SYNTAX=JS]yourEngineInstance.policy.setConnectTimeout(timeoutMS);[/SYNTAX]