If api.wp.org request blocks, make sure another requests isn't scheduled for 12 hours. see #8347

git-svn-id: https://develop.svn.wordpress.org/trunk@9901 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-26 11:48:05 +00:00
parent cb4478f23c
commit 94bfb09963
2 changed files with 14 additions and 1 deletions
+1
View File
@@ -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') );
}