Here is a suggested patch to add configurable timeouts to the PHP Toolkit. It would be great to include it in the library.
Code:
diff PHPToolkit/NSPHPClient.php PHPToolkit new/NSPHPClient.php
182c182
< global $nsaccount, $nsemail, $nsrole, $nspassword;
---
> global $nsaccount, $nsemail, $nsrole, $nspassword, $nstimeout;
215c215,217
< $options['connection_timeout'] = 5;
---
> if (!isset($options[‘connection_timeout’])) {
> $options[‘connection_timeout’] = isset($nstimeout) ? $nstimeout : 5;
> }
diff PHPToolkit/NSconfig.php PHPToolkit new/NSconfig.php
8a9
> $nstimeout = 5;
This is a cached copy. Click here to see the original post.