WordPress / WordPress/Requests

Support parallel requests with sockets

Open
#78 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Transports Type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.