Skip to content

Commit 470dbaf

Browse files
author
Nick-Adams-AU
committed
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.
1 parent 5767f29 commit 470dbaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sock/SocketClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getPort() {
3838
}
3939

4040
public function close() {
41-
socket_shutdown( $this->connection, 0);
41+
socket_shutdown( $this->connection );
4242
socket_close( $this->connection );
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)