[wp-trac] [WordPress Trac] #18738: Improving cron spawning and other non-blocking HTTP requests

WordPress Trac noreply at wordpress.org
Fri Oct 19 15:34:34 UTC 2012


#18738: Improving cron spawning and other non-blocking HTTP requests
---------------------------------+-----------------------------
 Reporter:  johnbillion          |       Owner:  dd32
     Type:  enhancement          |      Status:  accepted
 Priority:  high                 |   Milestone:  Future Release
Component:  HTTP                 |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.6-early  |
---------------------------------+-----------------------------

Comment (by mestovar):

 I spent a while tracking this one down and fixing it before I copped on
 and checked your bug tracking system.

 My solution was simply to fix the timeout issue where is turns the passed
 timeout into ceil(timeout) in seconds.  Since php 5.2.3 you can pass the
 timeout to curl as miliseconds, so I just altered it to use that method
 instead.  I verified that the cron does get run, but even though the
 original code used the same timeout for both, changing the connect timeout
 to 10ms may have repercussions.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18738#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list