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

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 24 12:30:00 UTC 2012


#18738: Improving cron spawning and other non-blocking HTTP requests
-------------------------+------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  HTTP         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by dd32):

 * milestone:  Awaiting Review => 3.5


Comment:

 Pulling this up into 3.5, I just noticed curl taking up a number of
 seconds to spawn cron.

 I'd like to suggest that:
  1. We change the request order GLOBALLY to fsockopen / cURL / streams or
 potentially cURL / fsockopen / streams (from the current cURL / streams /
 fsockopen )
  2. We add the non-blocking patch here to cURL

 Reasoning:
  * We control the way the fsockopen class works in every respect, we can
 catch when it doesnt work
  * It'd be nice to have 2 classes support non-blocking correctly,
 especially the ones given priority
  * fsockopen was originally added last as the builtin libraries were
 supposed to do it better than we would in PHP.. ultimately, tests seem to
 say curl
  * Streams (fopen) is also great at failing to spawn cron on setups using
 .local dns, Often seen in mac's, fopen() fails to open a loopback
 connection, also seen in Ubuntu installs occasionally.. this is what
 prompted me to come find this ticket again.

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


More information about the wp-trac mailing list