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

  • Author
    Posts
  • #6979

    martinbutt

    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, $nstimeout;

    215c215,217
    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.