clue · GitHub

@ghost

@ghost ghost changed the title Ensure signal constants are defined. Test using socket pairs. Test using socket pairs instead of memory streams

Jan 11, 2017
/**
* @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 clue changed the title Test using socket pairs instead of memory streams Test suite now uses socket pairs instead of memory streams

Feb 8, 2017

@clue clue mentioned this pull request

Feb 8, 2017

Closed

@clue

clue changed the base branch from master to 0.4

February 12, 2017 14:01

@kooldev

clue

clue approved these changes Feb 12, 2017

jsor

jsor approved these changes Feb 12, 2017

WyriHaximus

@WyriHaximus

@jsor jsor mentioned this pull request

Feb 15, 2017

Merged

Read the original on github.com ↗