WordPress.org

Make WordPress Core

Changeset 8528


Ignore:
Timestamp:
08/03/08 21:01:28 (6 years ago)
Author:
ryan
Message:

Timeout in WP_Http_Streams::request causes Fatal error abort. Props wet. fixes #7465 see #4779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r8524 r8528  
    624624                'max_redirects' => $r['redirection'], 
    625625                'protocol_version' => (float) $r['httpversion'], 
    626                 'header' => $headers 
     626                'header' => $headers, 
     627                'timeout' => $r['timeout'] 
    627628            ) 
    628629        ); 
     
    635636        $handle = fopen($url, 'r', false, $context); 
    636637 
    637         stream_set_timeout($handle, apply_filters('http_request_stream_timeout', $r['timeout']) ); 
    638  
    639638        if ( ! $handle) 
    640639            return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url)); 
     640 
     641        stream_set_timeout($handle, apply_filters('http_request_stream_timeout', $r['timeout']) ); 
    641642 
    642643        if ( ! $r['blocking'] ) { 
Note: See TracChangeset for help on using the changeset viewer.