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

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 26 02:17:40 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 hakre):

 See [http://php.net/manual/en/function.fclose.php fclose()].

 See See [http://www.php.net/manual/en/function.stream-get-meta-data.php
 stream_get_meta_data()] as well as [http://php.net/manual/en/function
 .stream-set-timeout.php stream_set_timeout()]

 > When the stream times out, the 'timed_out' key of the array returned by
 stream_get_meta_data() is set to TRUE, although no error/warning is
 generated.

 See [http://www.php.net/manual/en/context.http.php HTTP context options]:

 > timeout float
 >
 > Read timeout in seconds, specified by a float (e.g. 10.5).
 > By default the default_socket_timeout php.ini setting is used.

 Dividing by 2 makes not much sense to me, maybe sivel can say more. I've
 kept that in the refreshed patch.

 Next to all this, not much left in patch.

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


More information about the wp-trac mailing list