Skip to content

1.2.1: on streams 1.5, the response body is Closeable and the request is read through readHandle - #9

Merged
MarcelloDuarte merged 1 commit into
mainfrom
developing-1.2.1
Oct 15, 2026
Merged

MarcelloDuarte merged 1 commit into
mainfrom
developing-1.2.1

Conversation

@MarcelloDuarte

Copy link
Copy Markdown
Contributor

Requires streams ^1.5.

  • Client\ResponseBody implements Closeable, so the socket is released when a consumer cuts the response short with take() or an effect throws, not only when the body ends.
  • PhpServer reads php://input through readHandle, 64 KB a chunk: the handle is opened on the first pull and closed at EOF or when the stream is cut short.

133 tests, phpstan and the fixer clean.

@MarcelloDuarte
MarcelloDuarte merged commit 6f639f7 into main Oct 15, 2026
24 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.

1 participant