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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 25 05:20:04 UTC 2011


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

Comment (by dd32):

 In the case of the Streams transport, do we need to be good citizens and
 close the file handle when it times out?

 There's code such as this being mentioned on php.net:
 {{{
     while (!feof($sock) && !$info['timed_out']) {
          $file .= fgets($sock, 4096);
          $info = stream_get_meta_data($sock);
      }

      fclose($sock);
 }}}

 Do you have some form of reference for the / 2 timeout as well? It'd be
 useful to have something to point to.

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


More information about the wp-trac mailing list