Skip to content

Commit bed48d4

Browse files
committed
Fixed visible connection errors in clients
1 parent 0326f5d commit bed48d4

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/Socket/SocketInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Dazzle\Socket;
44

55
use Dazzle\Stream\AsyncStreamInterface;
6-
use Dazzle\Throwable\Exception\Runtime\ExecutionException;
76

87
interface SocketInterface extends AsyncStreamInterface
98
{

src/Socket/SocketListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Dazzle\Socket;
44

55
use Dazzle\Event\BaseEventEmitter;
6-
use Dazzle\Throwable\Exception\Runtime\ExecutionException;
76
use Dazzle\Throwable\Exception\Runtime\ReadException;
87
use Dazzle\Throwable\Exception\Logic\InstantiationException;
98
use Dazzle\Throwable\Exception\LogicException;
@@ -417,7 +416,7 @@ protected function createServer($endpoint, $config = [])
417416
$context = stream_context_create($context);
418417

419418
// Error reporting suppressed since stream_socket_server() emits an E_WARNING on failure.
420-
$socket = stream_socket_server(
419+
$socket = @stream_socket_server(
421420
$endpoint,
422421
$errno,
423422
$errstr,

0 commit comments

Comments
 (0)