facebook/hhvm — pull request #1640 by dgiagio (2014-01-25 16:32:10+00:00)
Title: Implement correct behavior on stream connect and send/recv timeout

This PR fixes facebook/hhvm#1361, as reported on that issue:

- As document http://www.php.net/manual/zh/function.fsockopen.php
says, timeout parameter to fsockopen() only applies while
connecting the socket. , but hhvm use this parameter as socket
send and recv timeout.

- In Zend php, stream_set_timeout set both send and recv timeout,
while in hhvm it set only recv timeout.