You are here

private function SocketHandler::setStreamChunkSize in Lagoon Logs 8

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

File

src/Logger/SocketHandler.php, line 325

Class

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

Namespace

Drupal\lagoon_logs\Logger

Code

private function setStreamChunkSize() {
  if ($this->chunkSize && !$this
    ->streamSetChunkSize()) {
    throw new \UnexpectedValueException("Failed setting chunk size with stream_set_chunk_size()");
  }
}