Skip to content

Fix issue where stream read is terminated prematurely#4032

Merged
antonmedv merged 5 commits intodeployphp:masterfrom
pelmered:master
Mar 6, 2025
Merged

Fix issue where stream read is terminated prematurely#4032
antonmedv merged 5 commits intodeployphp:masterfrom
pelmered:master

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