-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add App::terminate() stream support #2028
Conversation
tests/AppTest.php
Outdated
@@ -68,4 +70,22 @@ public function testUnexpectedOutputLateError(): void | |||
ob_end_clean(); | |||
} | |||
} | |||
|
|||
/* throws headers already sent exception so not sure how to write this test for stream output | |||
public function testStreamResponse(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test should test sending large (10GB+) data with known pattern to test the response is not materialized somewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I have no idea how to write that. Will have to ask ChatGPT :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented and tested with 6GB
the main bottleneck seems to be in Guzzle HTTP client - guzzle/guzzle#3115
until improved, let's test the streaming support with 50 MB only
298887b
to
fa76c11
Compare
e0493a8
to
6801f94
Compare
29a2bc2
to
65fbd8b
Compare
No description provided.