WordPress / WordPress/Requests

Support request concurrency on fsockopen::request_multiple

Open
#317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

Right now the fsockopen transport request_multiple method is just a foreach loop with a serial request implementation.

Using stream_select and splitting the read and parse logic things can become parallel without using threads.

Related #266 and #53

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 at the fsockopen transport's request_multiple method, which currently performs requests serially, and read the related issues #266 and #53. Investigate how stream_select could coordinate concurrent reads while separating read and parse logic. Done means request_multiple handles multiple requests concurrently without threads and preserves correct response parsing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend-api-design, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.