Skip to content

Commit

Permalink
Update Select.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Dec 23, 2019
1 parent 5eb1b14 commit 416f864
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Events/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ class Select implements EventInterface
*/
public function __construct()
{
// Create a pipeline and put into the collection of the read to read the descriptor to avoid empty polling.
$this->channel = \stream_socket_pair(\DIRECTORY_SEPARATOR === '/' ? \STREAM_PF_UNIX : \STREAM_PF_INET,
\STREAM_SOCK_STREAM, \STREAM_IPPROTO_IP);
if($this->channel) {
\stream_set_blocking($this->channel[0], 0);
$this->_readFds[0] = $this->channel[0];
}
// Init SplPriorityQueue.
$this->_scheduler = new \SplPriorityQueue();
$this->_scheduler->setExtractFlags(\SplPriorityQueue::EXTR_BOTH);
Expand Down

0 comments on commit 416f864

Please sign in to comment.