amphp / byte-stream

A non-blocking stream abstraction for PHP based on Amp.
https://amphp.org/byte-stream
MIT License
363 stars 31 forks source link

Fix ResourceInputStream not properly nulling the resource on close #68

Closed kelunik closed 4 years ago

kelunik commented 4 years ago

This causes the stream to be reported as open by amphp/socket, which in turn causes InvalidWatcherErrors in amphp/http-client, because the socket is reported as still open and thus referenced.

Fixes #67.