Skip to content

Commit 0fda846

Browse files
committed
[EventLoop][LibEv] Let stream remove event listener
1 parent e08ffb9 commit 0fda846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Connection extends Stream implements ConnectionInterface
1414
public function handleData($stream)
1515
{
1616
$data = stream_socket_recvfrom($stream, $this->bufferSize);
17-
if ('' === $data || false === $data) {
17+
if ('' === $data || false === $data || feof($stream)) {
1818
$this->end();
1919
} else {
2020
$this->emit('data', array($data, $this));

0 commit comments

Comments
 (0)