Skip to content

Commit 49b36fd

Browse files
committed
Merge pull request #1 from Nick-Adams-AU/patch-1
socket_shutdown should stop read and write
2 parents 5767f29 + 470dbaf commit 49b36fd

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)