We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61be28 commit 803b64cCopy full SHA for 803b64c
src/Socket/Connection.php
@@ -11,10 +11,11 @@ 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 ){
15
+ $this->emit('data', array($data, $this));
16
+ }
17
if ('' === $data || false === $data || feof($stream)) {
18
$this->end();
- } else {
- $this->emit('data', array($data, $this));
19
}
20
21
0 commit comments