If api.wp.org request blocks, make sure another requests isn't scheduled for 12 hours. see #8347
git-svn-id: http://svn.automattic.com/wordpress/trunk@9901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -786,6 +786,7 @@ class WP_Http_Streams {
|
||||
stream_set_timeout($handle, $r['timeout'] );
|
||||
|
||||
if ( ! $r['blocking'] ) {
|
||||
stream_set_blocking($handle, 0);
|
||||
fclose($handle);
|
||||
return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user