We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2f58f2 commit 43b9343Copy full SHA for 43b9343
Connection.php
@@ -11,9 +11,10 @@ public function handleData($stream)
11
// Socket is raw, not using fread as it's interceptable by filters
12
// See issues #192, #209, and #240
13
$data = stream_socket_recvfrom($stream, $this->bufferSize);
14
- if( '' !== $data || false !== $data ){
+ if ('' !== $data && false !== $data) {
15
$this->emit('data', array($data, $this));
16
}
17
+
18
if ('' === $data || false === $data || feof($stream)) {
19
$this->end();
20
0 commit comments