reactphp/stream — pull request #9 by steverhoades (2014-08-30 00:53:13+00:00)
Title: add stream_set_blocking for  of type stream to limit boilerplate

for creating non-blocking io.

Decided to add a PR for this after talking with @cboden on IRC. It seems like it would be beneficial to have Stream always set stream_set_blocking for all stream types.

This would eliminate the need for:
https://github.com/reactphp/socket/blob/master/src/Server.php#L46

as Connection is of type Stream and the construction occurs:
https://github.com/reactphp/socket/blob/master/src/Server.php#L69

The benefit of this is that we can now do things like this:
```
$stream = new \React\Stream\Stream(fopen('myfile.txt', 'r'), $loop);
```