[wp-trac] [WordPress Trac] #26085: timeout in WP_Http_Streams::request unhandled
WordPress Trac
noreply at wordpress.org
Sun Nov 17 15:01:12 UTC 2013
#26085: timeout in WP_Http_Streams::request unhandled
--------------------------+-----------------------------
Reporter: thpani | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
--------------------------+-----------------------------
WP_Http_Streams::request correctly calls stream_set_timeout().
However, from http://us2.php.net/stream_set_timeout it seems that
stream_get_meta_data() has to be checked to see if a timeout actually
occured during fread()
Tested using netcat as "slow" HTTP server:
{{{
while true; do (echo '1'; sleep 15; echo '2') | nc -l 8888 ; done
}}}
causes Wordpress to hang in this loop:
http://core.trac.wordpress.org/browser/tags/3.7.1/src/wp-includes/class-
http.php#L899
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26085>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list