[wp-trac] [WordPress Trac] #18738: Improving cron spawning and other non-blocking HTTP requests
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 15 18:52:14 UTC 2012
#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 |
-------------------------+------------------------------
Changes (by kurtpayne):
* cc: kpayne@… (added)
Comment:
Replying to [comment:7 dd32]:
> Yeah, It needs to be called a few times whilst it processes the
connection request at least. with multi_exec I'd want a shutdown hook to
finalise the connection.
Excellent idea. [[attachment:18738-curl_multi.patch]] does this. I've
run this against the HTTP unit tests and there are no failures. There are
no tests that use the blocking flag, but this patch doesn't break
anything. And the output from the test script is:
{{{
Using curl
5.303
0.013
Using fsockopen
5.308
0.162
Using streams
5.438
5.448
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18738#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list