reactphp/react — pull request #192 by clue (2013-04-28 15:11:59+00:00)
Title: WIP: [Socket] Connection should use fread() instead of socket_recv_from()

Currently, the `Connection` can not be used when using SSL connections. It internally uses `socket_recv_from()` which bypasses the SSL wrapper and thus returns the raw encrypted data stream instead of the decrypted payload stream.

I'm marking this as WIP, because I suspect `socket_recv_from()` was used intentionally and this change might possibly break something. All provided unit tests pass as-is, so I'm not entirely sure.