Skip to content

Commit 6d068f4

Browse files
Surpressed errors from stream_socket_accept()
PHP Warnings from stream_socket_accept() can occur when the connection is pulled before it's accepted
1 parent d08bd18 commit 6d068f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection/StreamSocketConnectionPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function shutdown()
112112
*/
113113
protected function acceptConnection(ConnectionHandlerFactoryInterface $connectionHandlerFactory)
114114
{
115-
$clientSocket = stream_socket_accept($this->serverSocket);
115+
$clientSocket = @stream_socket_accept($this->serverSocket);
116116

117117
if (false === $clientSocket) {
118118
return;

0 commit comments

Comments
 (0)