Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Gelf/Transport/UdpTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@
return 1;
}

/**
* @deprecated use setConnectTimeoutInMs instead
* @see TcpTransport::setConnectTimeout
*/
public function setConnectTimeout(int $timeout): void
{
$this->socketClient->setConnectTimeout($timeout);
}

public function setConnectTimeoutInMs(int $timeoutInMs): void
{
// currently socketClient only supports int
$this->socketClient->setConnectTimeout((int)ceil($timeoutInMs / 1_000));

Check warning on line 103 in src/Gelf/Transport/UdpTransport.php

View check run for this annotation

Scrutinizer / Inspection

src/Gelf/Transport/UdpTransport.php#L103

A parse error occurred: Syntax error, unexpected T_STRING, expecting ',' or ')' on line 103 at column 73
}

/**
* Sends given string in multiple chunks
*/
Expand Down
Loading