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 cadbd3a commit 5a98fbbCopy full SHA for 5a98fbb
src/DNode/DNode.php
@@ -38,7 +38,7 @@ public function connect()
38
throw new \Exception("For now we only support TCP connections to a defined port");
39
}
40
41
- $client = stream_socket_client("tcp://{$params['host']}:{$params['port']}");
+ $client = @stream_socket_client("tcp://{$params['host']}:{$params['port']}");
42
if (!$client) {
43
$e = new \RuntimeException("No connection to DNode server in tcp://{$params['host']}:{$params['port']}");
44
$this->emit('error', array($e));
@@ -47,9 +47,6 @@ public function connect()
47
trigger_error((string) $e, E_USER_ERROR);
48
49
50
- var_dump('sleeping');
51
- sleep(1);
52
-
53
return;
54
55
0 commit comments