Skip to content

Commit 416f864

Browse files
authored
Update Select.php
1 parent 5eb1b14 commit 416f864

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Events/Select.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ class Select implements EventInterface
9595
*/
9696
public function __construct()
9797
{
98-
// Create a pipeline and put into the collection of the read to read the descriptor to avoid empty polling.
99-
$this->channel = \stream_socket_pair(\DIRECTORY_SEPARATOR === '/' ? \STREAM_PF_UNIX : \STREAM_PF_INET,
100-
\STREAM_SOCK_STREAM, \STREAM_IPPROTO_IP);
101-
if($this->channel) {
102-
\stream_set_blocking($this->channel[0], 0);
103-
$this->_readFds[0] = $this->channel[0];
104-
}
10598
// Init SplPriorityQueue.
10699
$this->_scheduler = new \SplPriorityQueue();
107100
$this->_scheduler->setExtractFlags(\SplPriorityQueue::EXTR_BOTH);

0 commit comments

Comments
 (0)