From 3cdbf349f96369fa5190aa6a3daa88536247d1cb Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 20 Jan 2019 22:42:39 +0100 Subject: [PATCH] Add error suppression for tests --- src/Internal/Rfc6455Gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internal/Rfc6455Gateway.php b/src/Internal/Rfc6455Gateway.php index 7f3a050..613a372 100644 --- a/src/Internal/Rfc6455Gateway.php +++ b/src/Internal/Rfc6455Gateway.php @@ -244,7 +244,7 @@ public function reapClient( if (\function_exists('socket_import_stream') && \defined('TCP_NODELAY')) { $sock = \socket_import_stream($socket->getResource()); /** @noinspection PhpComposerExtensionStubsInspection */ - \socket_set_option($sock, \SOL_TCP, \TCP_NODELAY, 1); + @\socket_set_option($sock, \SOL_TCP, \TCP_NODELAY, 1); // error suppression for sockets which don't support the option } Promise\rethrow(new Coroutine($this->tryAppOnOpen($client->id, $request)));