Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior: Closing body stream result in an error #364

Open
Nek- opened this issue May 10, 2024 · 0 comments
Open

Unexpected behavior: Closing body stream result in an error #364

Nek- opened this issue May 10, 2024 · 0 comments

Comments

@Nek-
Copy link
Contributor

Nek- commented May 10, 2024

This issue is a follow up on a discussion that occurs on telegram: @trowski specified it should be an issue, so I open one!

It's related to the discussion I already opened here: #363

Using this code:

$this->response->getBody()->close();

Results in an error like the following:

PHP Fatal error:  Uncaught Amp\Pipeline\DisposedException: The iterator has been disposed in vendor/amphp/pipeline/src/Internal/QueueState.php:185

Instead, a cancellation exception is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant