[wp-trac] [WordPress Trac] #17238: Parallel HTTP Requests
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 26 00:51:09 UTC 2011
#17238: Parallel HTTP Requests
-----------------------------+----------------------
Reporter: sterlo | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: HTTP | Version:
Severity: normal | Resolution: invalid
Keywords: |
-----------------------------+----------------------
Changes (by dd32):
* milestone: Awaiting Review =>
Comment:
non-blocking requests allow the request to be made, however no output from
the server is captured.
The HTTP Extension can be useful (pecl http) however was just removed from
core due to it's lack of functionality offered over that of cURL. cURL
itself can handle multiple requests (which is where pecl http gets it's
functionality from) but that isnt exposed in WP_HTTP
The main thing which prevents this being implemented on Streams and
Fsockopen is that PHP is single-threaded (Sure, there are extensions for
that, but lets not go there) resulting in functions for the http class
having to be called regularly to check for output.
I'm not sure of your use-case here, but due to the above reasons, I'd not
suggest it be added to core, and would've closed this ticket as wontfix
myself. I would probably suggest using WordPress's cron system and firing
off the http requests in their own WordPress instance/thread
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17238#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list