[wp-trac] [WordPress Trac] #13841: Some HTTP Transports do not respect transfer timeouts

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 11 04:51:32 UTC 2010


#13841: Some HTTP Transports do not respect transfer timeouts
--------------------------+-------------------------------------------------
 Reporter:  sivel         |       Owner:                              
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  3.1                         
Component:  HTTP          |     Version:  3.0                         
 Severity:  normal        |    Keywords:  has-patch dev-feedback early
--------------------------+-------------------------------------------------

Comment(by sivel):

 Some info about my test setup:

 Some code for your themes functions.php:
 {{{
 //add_filter('use_streams_transport', '__return_false');
 add_filter('use_fsockopen_transport', '__return_false');
 add_filter('use_fopen_transport', '__return_false');
 add_filter('use_http_extension_transport', '__return_false');
 add_filter('use_curl_transport', '__return_false');
 $response = wp_remote_get('http://localhost/timeout.php', array('timeout'
 => 5.5));
 var_dump($response);
 }}}

 timeout.php
 {{{
 <?php
 $i = 0;
 while ( $i < 15 ) {
         sleep(1);
         $i++;
 }
 ?>
 }}}

 Comment out the transport that you want to use.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13841#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list