[wp-trac] [WordPress Trac] #63547: wp_remote_post not respecting timeout & blocking params

WordPress Trac noreply at wordpress.org
Fri Aug 22 09:05:24 UTC 2025


#63547: wp_remote_post not respecting timeout & blocking params
---------------------------+--------------------------
 Reporter:  mihai200       |       Owner:  westonruter
     Type:  defect (bug)   |      Status:  accepted
 Priority:  normal         |   Milestone:  6.9
Component:  HTTP API       |     Version:  4.6
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:  performance
---------------------------+--------------------------
Changes (by pmbaldha):

 * keywords:   => needs-testing


Comment:

 == Test Report

 Patch tested:
 https://core.trac.wordpress.org/attachment/ticket/63547/63547.patch
 (Created patch file https://github.com/WordPress/Requests/pull/932 for
 easy testing)

 === Steps to Reproduce or Test
 1. Create wp-content/mu-plugins/test.php with the below content:

 {{{#!php
 <?php
 add_action('init', function () {
         $url = "https://ipify.org";
         $args = [
                 'timeout' => 0.1,
                 'blocking' => false,
                 'sslverify' => false,

         ];
         $start = microtime(true);
         $response = wp_remote_post($url, $args);
         $end = microtime(true);

         echo $end - $start;
         die;
 });
 }}}


 2. Run http://localhost:8889/ in the browser.
 3. 🐞 When running the http://localhost:8889/ URL in the browser, I am
 getting the output: 0.91191101074219

 === Expected Results
 When testing a patch to validate it works as expected:
 - ✅ When running the http://localhost:8889/ URL in the browser, I am
 getting the output: 0.17525386810303

 When reproducing a bug:
 - 🐞 When running the http://localhost:8889/ URL in the browser, I am
 getting the output: 0.91191101074219


 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.29
 - Server: nginx/1.29.1
 - Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 139.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.3
 - MU Plugins:
   * test.php
 - Plugins:
   * Query Monitor 3.19.0
   * Test Reports 1.2.0

 ==== Actual Results
 When reproducing a bug/defect:
 - 🐞 When running the http://localhost:8889/ URL in the browser, I am
 getting the output: 0.91191101074219

 When testing the bugfix patch:
 - ✅ Issue resolved with patch.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63547#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list