Skip to content

Fix issue where stream read is terminated prematurely #4032

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

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

pelmered
Copy link
Contributor

@pelmered pelmered commented Mar 6, 2025

This should fix the issue described in: #3981

It also simplifies the code a bit.

I had this issue when the response get too big just before the deploy finishes. For example if you keep 10 or more releases. Then the read terminates after the first pass becuase there are two line breaks after the headers and before the payload JSON starts and thus the strpos($request, "\r\n\r\n") is triggered after the first iteration even if there are more data to read.

@pelmered pelmered changed the title Fix issue where stream read is terminated prematurely #1 Fix issue where stream read is terminated prematurely Mar 6, 2025
@antonmedv antonmedv merged commit 5f69a2e into deployphp:master Mar 6, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants