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.
2 parents dfd1b98 + 983e450 commit 42300bfCopy full SHA for 42300bf
Server.php
@@ -17,9 +17,10 @@ public function __construct(LoopInterface $loop)
17
18
public function listen($port, $host = '127.0.0.1')
19
{
20
- $this->master = stream_socket_server("tcp://$host:$port", $errno, $errstr);
+ $this->master = @stream_socket_server("tcp://$host:$port", $errno, $errstr);
21
if (false === $this->master) {
22
- throw new ConnectionException($errstr, $errno);
+ $message = "Could not bind to tcp://$host:$port: $errstr";
23
+ throw new ConnectionException($message, $errno);
24
}
25
stream_set_blocking($this->master, 0);
26
0 commit comments