WordPress / WordPress/Requests
Support parallel requests with sockets
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 500
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Description
@rdlowrey's Artax client supports parallel requests with sockets. Currently, this is the only real difference between cURL and sockets in terms of functionality.
We should investigate whether proper parallelisation can be supported with sockets, and if so, what the requirements are for this. Alert is listed as requiring 5.4+, but I'm not sure on whether this is just Alert or if event reactors aren't possible on 5.2/5.3. In either case, I'm in favour of supporting parallelisation on the platforms that support it and falling back if not, as it's still an upgrade from what we have now.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing Artax's linked src/Artax/AsyncClient.php and investigating Alert's PHP 5.2-5.4 compatibility. Determine the requirements for parallel socket requests and whether unsupported platforms can fall back; done means supported platforms parallelize requests while others retain current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100