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

WordPress Trac noreply at wordpress.org
Sun Jun 8 19:05:36 UTC 2025


#63547: wp_remote_post not respecting timeout & blocking params
--------------------------+-----------------------------
 Reporter:  mihai200      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.7.2
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 Tried on an fresh WordPress 6.7.2 install following to prove my point and
 i get 0.4-0.6 seconds:


 {{{
 $url = "https://ipify.org";

 $args = [
       'timeout' => 0.1,
       'blocking' => false,
       'sslverify' => false,
 ];

 $start = microtime(true);
 $response = wp_remote_post($url, $args);
 $end = microtime(true);
 $exec_time = $end - $start;
 }}}



 I ve made a simple script to test the issue :
 https://gist.github.com/misu200/7bc269af5dbf8b755059ad5822a7a970

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


More information about the wp-trac mailing list