react-php/react — pull request #60 by arnaud-lb (2012-08-14 10:45:11+00:00)
Title: handle write errors in Stream Buffer

This handles two issues:

When a write fails (fwrite returns false because the stream isn't open anymore), Buffer doesn't remove the stream from the event loop

And when the other side of a socket is closed, Buffer may not notice it and won't emit an error event