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

WordPress Trac noreply at wordpress.org
Sun Jun 8 22:23:42 UTC 2025


#63547: wp_remote_post not respecting timeout & blocking params
--------------------------+--------------------------
 Reporter:  mihai200      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  6.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+--------------------------

Comment (by westonruter):

 If I patch `wp-cron.php` to add `sleep( 3 );` at the top, and then I
 schedule an immediate task via WP-CLI:

 {{{
 wp cron event schedule foo
 }}}

 Then if I load the the site in the browser with Query Monitor running, I
 can see that this Non-Blocking request took over 1 second. What's more is
 that it did so even though it has a 0.01 second timeout. This caused the
 response time to be 1.21 seconds instead of 192 ms when no cron is
 spawned.

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


More information about the wp-trac mailing list