Ticket #11505: ticket-11505-full.patch
File ticket-11505-full.patch, 690 bytes (added by , 15 years ago) |
---|
-
http.php
1296 1296 1297 1297 // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since 1298 1298 // a value of 0 will allow an ulimited timeout. 1299 // Use _MS if available .1299 // Use _MS if available, but must be >= 1000. 1300 1300 if ( defined( 'CURLOPT_TIMEOUT_MS' ) ) { 1301 $timeout_ms = (int) ceil( 1000 * $r['timeout']);1301 $timeout_ms = (int) ceil( 1000 * max($r['timeout'], 1) ); 1302 1302 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT_MS, $timeout_ms ); 1303 1303 curl_setopt( $handle, CURLOPT_TIMEOUT_MS, $timeout_ms ); 1304 1304 } else {