Releases: amphp/byte-stream
Releases · amphp/byte-stream
1.1.5
- Use
stream_get_contents
instead of fread
for all resource input streams except for UDP streams. This resolves amphp/artax#138.
1.1.4
- Fixed pending
Message::read()
not failing on error.
1.1.3
- Fixed race condition for closed streams. If a stream has been closed, but the final chunk not written yet, a
ResourceOutputStream
didn't throw an exception as expected, but instead resulted in an InvalidWatcherError
.
1.1.2
- Fixed an issue with writes filling the internal buffer exactly. (StreamException thrown if internal buffer is full and a fwrite() call thus returning 0.)
1.1.1
- Fixed an issue in
Message
hiding exceptions when streaming.
1.1.0
- Added
ResourceInputStream::reference()
and ResourceInputStream::unreference()
1.0.3
- Suppress errors on close in resource streams.
1.0.2
- Fixed an issue in
ResourceOutputStream
when writing large data chunks and the $chunkSize
provided to the constructor was null
.
ResourceInputStream
closes the readable side of the stream with stream_socket_shutdown
(or closes the stream with fclose
for read-only streams) when the close
method is invoked. The GC was relied upon for this behavior before, but was inconsistent.
ResourceOutputStream
now closes the writable side of the stream with stream_socket_shutdown
(or closes the stream with fclose
for write-only streams) when the close
method is invoked. The GC was relied upon for this behavior before, but was inconsistent.
1.0.1
- Fixed warning on already closed resources.