Skip to content

[support] LimitConcurrentRequestsMiddleware vs stream body response #411

@quazardous

Description

@quazardous

I'm using response with streamed body as explained here https://github.com/reactphp/http#streaming-outgoing-response

I'm not sure LimitConcurrentRequestsMiddleware knows how to handle response with streamed body:

// from src/Middleware/LimitConcurrentRequestsMiddleware.php
...
            // happy path: if next request handler returned immediately,
            // we can simply try to invoke the next queued request
            if ($response instanceof ResponseInterface) {
                $this->processQueue();
                return $response;
            }
...

So even if the stream is still alive it is not counted as "Concurrent", right ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions