From 470dbaf023256192d622bde089f64d5789be985a Mon Sep 17 00:00:00 2001 From: Nick-Adams-AU Date: Sat, 30 Mar 2013 19:12:19 +1000 Subject: [PATCH] socket_shutdown should stop read and write As we are closing this connection on the next line, socket_shutdown should stop reading and writing. Removed additional parameter to reflect default PHP behaviour. --- sock/SocketClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sock/SocketClient.php b/sock/SocketClient.php index bb0fe9b..22491d4 100644 --- a/sock/SocketClient.php +++ b/sock/SocketClient.php @@ -38,7 +38,7 @@ public function getPort() { } public function close() { - socket_shutdown( $this->connection, 0); + socket_shutdown( $this->connection ); socket_close( $this->connection ); } -} \ No newline at end of file +}