You are here

private function SocketHandler::setSocketTimeout in Lagoon Logs 8

1 call to SocketHandler::setSocketTimeout()
SocketHandler::connect in src/Logger/SocketHandler.php

File

src/Logger/SocketHandler.php, line 319

Class

SocketHandler
Stores to any socket - uses fsockopen() or pfsockopen().

Namespace

Drupal\lagoon_logs\Logger

Code

private function setSocketTimeout() {
  if (!$this
    ->streamSetTimeout()) {
    throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()");
  }
}