Changeset 18633 for trunk/wp-includes/class-http.php
- Timestamp:
- 09/03/2011 04:02:41 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-http.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r18457 r18633 223 223 * Dispatches a HTTP request to a supporting transport. 224 224 * 225 * Tests each transport in order to find a transport which matches the request argu ements.225 * Tests each transport in order to find a transport which matches the request arguments. 226 226 * Also caches the transport instance to be used later. 227 227 * … … 632 632 $endDelay = time(); 633 633 634 // If the delay is greater than the timeout then fsockopen should 't be used, because it will634 // If the delay is greater than the timeout then fsockopen shouldn't be used, because it will 635 635 // cause a long delay. 636 636 $elapseDelay = ($endDelay-$startDelay) > $r['timeout']; … … 916 916 $processedHeaders = WP_Http::processHeaders($meta['wrapper_data']); 917 917 918 // Streams does not provide an error code which we can use to see why the request stream stop ed.918 // Streams does not provide an error code which we can use to see why the request stream stopped. 919 919 // We can however test to see if a location header is present and return based on that. 920 920 if ( isset($processedHeaders['headers']['location']) && 0 !== $args['_redirection'] ) … … 1032 1032 1033 1033 // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since 1034 // a value of 0 will allow an u limited timeout.1034 // a value of 0 will allow an unlimited timeout. 1035 1035 $timeout = (int) ceil( $r['timeout'] ); 1036 1036 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); … … 1680 1680 1681 1681 /** 1682 * What enco nding the content used when it was compressed to send in the headers.1682 * What encoding the content used when it was compressed to send in the headers. 1683 1683 * 1684 1684 * @since 2.8
Note: See TracChangeset
for help on using the changeset viewer.