[wp-trac] [WordPress Trac] #18738: Improving cron spawning and other non-blocking HTTP requests
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 24 08:25:27 UTC 2011
#18738: Improving cron spawning and other non-blocking HTTP requests
-------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by johnbillion):
The `curl_multi` functions aren't non-blocking either (well, they are, but
they don't actually allow you to perform a non-blocking request). Your
script needs to wait for a result from `curl_multi_exec` in a `do while`
loop. If you call `curl_multi_exec` once then carry on, the handle will be
killed by PHP during cleanup and you risk killing the handle before it's
completed its request (eg. it might be in the middle of sending data).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18738#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list