Make WordPress Core


Ignore:
Timestamp:
08/15/2009 12:01:04 PM (15 years ago)
Author:
azaozz
Message:

Add constants for ftp connections timeouts, props dd32, see #10522

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ssh2.php

    r11818 r11823  
    4646    var $sftp_link = false;
    4747    var $keys = false;
    48     /*
    49      * This is the timeout value for ssh results.
    50      * Slower servers might need this incressed, but this number otherwise should not change.
    51      *
    52      * @parm $timeout int
    53      *
    54      */
    55     var $timeout = 15;
    5648    var $errors = array();
    5749    var $options = array();
     
    149141        } else {
    150142            stream_set_blocking( $stream, true );
    151             stream_set_timeout( $stream, $this->timeout );
     143            stream_set_timeout( $stream, FS_TIMEOUT );
    152144            $data = stream_get_contents( $stream );
    153145            fclose( $stream );
Note: See TracChangeset for help on using the changeset viewer.