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

Reduce max empty writes to 1 #75

Closed trowski closed 2 years ago

trowski commented 4 years ago

The root cause of the write failures on some platforms seems to be EAGAIN, which should not occur consecutively in the watcher callback.

This replaces #74.