You are here

public function SocketHandler::setWritingTimeout in Lagoon Logs 8

Set writing timeout. Only has effect during connection in the writing cycle.

Parameters

float $seconds 0 for no timeout:

File

src/Logger/SocketHandler.php, line 143

Class

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

Namespace

Drupal\lagoon_logs\Logger

Code

public function setWritingTimeout($seconds) {
  $this
    ->validateTimeout($seconds);
  $this->writingTimeout = (double) $seconds;
}