public function SocketHandler::closeSocket in Lagoon Logs 8
Close socket, if open
2 calls to SocketHandler::closeSocket()
- SocketHandler::close in src/
Logger/ SocketHandler.php - We will not close a PersistentSocket instance so it can be reused in other requests.
- SocketHandler::writingIsTimedOut in src/
Logger/ SocketHandler.php
File
- src/
Logger/ SocketHandler.php, line 96
Class
- SocketHandler
- Stores to any socket - uses fsockopen() or pfsockopen().
Namespace
Drupal\lagoon_logs\LoggerCode
public function closeSocket() {
if (is_resource($this->resource)) {
fclose($this->resource);
$this->resource = NULL;
}
}