openresty / openresty/test-nginx
feature: Add support for array of requests with delays to pipelined_requests
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 456
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I need to be able to add a delay between pipelined requests and currently this is not supported
--- pipelined_requests eval
["GET /t/1", "GET /t/2", [{value => "GET /t/3", delay_before =>3}]]
will generate a malformed http request
127.0.0.1 - - [03/May/2021:15:10:51 +0200] "GET /t/1 HTTP/1.1" 200 2 "-" "-"
127.0.0.1 - - [03/May/2021:15:10:51 +0200] "GET /t/2 HTTP/1.1" 200 2 "-" "-"
127.0.0.1 - - [03/May/2021:15:10:51 +0200] "ARRAY(0x7fdebfc7d1e8) / HTTP/1.1" 400 157 "-" "-"
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 by locating the pipelined_requests implementation and reproduce the issue's request array example. Trace how nested request entries are parsed, then verify that an entry with delay_before produces valid sequential requests rather than an ARRAY request; the example should complete without a malformed HTTP request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100