You are here

public function SocketHandler::setTimeout in Lagoon Logs 8

Set write timeout. Only has effect before we connect.

Parameters

float $seconds:

See also

http://php.net/manual/en/function.stream-set-timeout.php

File

src/Logger/SocketHandler.php, line 132

Class

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

Namespace

Drupal\lagoon_logs\Logger

Code

public function setTimeout($seconds) {
  $this
    ->validateTimeout($seconds);
  $this->timeout = (double) $seconds;
}