This topic contains 0 replies, has 0 voices, and was last updated by martinbutt 9 years ago.

  • Author
    Posts
  • #6979 Score: 0

    martinbutt
    • Contributions: 0
    • Level 1

    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.

You must be logged in to reply to this topic.