### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/class-http.php
===================================================================
--- wp-includes/class-http.php	(revision 17565)
+++ wp-includes/class-http.php	(working copy)
@@ -871,9 +871,9 @@
 		if ( ! $handle )
 			return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url));
 
-		$timeout = (int) floor( $r['timeout'] );
-		$utimeout = $timeout == $r['timeout'] ? 0 : 1000000 * $r['timeout'] % 1000000;
-		stream_set_timeout( $handle, $timeout, $utimeout );
+		$timeout_int = (int) $r['timeout'];
+		$timeout_micro = ( $r['timeout'] - $timeout_int ) * 1000000;
+		stream_set_timeout( $handle, $timeout_int, $timeout_micro );
 
 		if ( ! $r['blocking'] ) {
 			stream_set_blocking($handle, 0);
