ghost
changed the title
Ensure signal constants are defined. Test using socket pairs.
Test using socket pairs instead of memory streams
| /** | ||
| * @deprecated Use createSocketPair() instead. | ||
| */ | ||
| public function createStream() |
| if ($this->isUnixSocketSupported()) { | ||
| $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); | ||
| } else { | ||
| $sockets = stream_socket_pair(STREAM_PF_INET, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); |
| } | ||
|
|
||
| foreach ($sockets as $socket) { | ||
| if (function_exists('stream_set_read_buffer')) { |
| /** | ||
| * @deprecated Use createSocketPair() and fwrite() instead. | ||
| */ | ||
| public function writeToStream($stream, $content) |
| $this->loop->nextTick(function () { | ||
| $this->loop->stop(); | ||
| }); | ||
|
|
clue
changed the title
Test using socket pairs instead of memory streams
Test suite now uses socket pairs instead of memory streams
clue
mentioned this pull request
Closed
clue changed the base branch from master to 0.4
February 12, 2017 14:01clue approved these changes Feb 12, 2017
jsor approved these changes Feb 12, 2017
jsor
mentioned this pull request
Merged