We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e08ffb9 commit 0fda846Copy full SHA for 0fda846
Connection.php
@@ -14,7 +14,7 @@ class Connection extends Stream implements ConnectionInterface
14
public function handleData($stream)
15
{
16
$data = stream_socket_recvfrom($stream, $this->bufferSize);
17
- if ('' === $data || false === $data) {
+ if ('' === $data || false === $data || feof($stream)) {
18
$this->end();
19
} else {
20
$this->emit('data', array($data, $this));
0 commit comments