workerman-php / workerman-php/http-client
Workerman\Http\ParallelClient 定时请求bug问题
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 55
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
批量请求,上次的bug OK了。
问题1:现在如果定时批量请求,返回值问题,如果现在有3个请求地址;
$results = $http->await(false);
第一次请求返回正常结果是 3个。
第二次请求,返回结果就变成6 个
第三次请求,返回结果就变成9个
是不是因为定时请求,每次都push了地址,,造成有6给而请求地址,。有没有什么方法可以在每次请求完成后 吧push的地址都清空
Contributor guide
No contributing guide indexed for this repository
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 at Workerman\Http\ParallelClient and its await(false) flow. Reproduce the scheduled batch with three request URLs, then trace why results grow from 3 to 6 to 9 across runs. Done means each completed batch returns only its three current results, with a regression test covering repeated scheduled requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100